pull down to refresh
I guess the easiest way to be notified about a new block is through bitcoind using the blocknotify property e.g. blocknotify=killall -USR1 datum_gateway
reply
Yeah, with the getblockcount command you gotta do some polling every few seconds and build your logic around that. It’s not the most elegant solution, but it works.
reply
A more accurate implementation would use the ZMQ to subscribe and get an event exactly when the new block is added. Polling
getblockcountis still using normie-time as the basis for the sheduler.Yea, I might have to vibe this one myself...