Hey builders,
I'm looking for a daemon cron-like job scheduler, but it works based on blocktime.
For example:
# run every block
* echo "New block found!"
# run every 3 blocks
*/3 echo "This block number evenly divides by 3"
# run on block 1,000,000
1000000 echo "Tick tock, bitcoin just found it's 1-millionth block!"
Does something like this exist?
bitcoin-cli getblockcount.getblockcountis still using normie-time as the basis for the sheduler.blocknotifyproperty e.g.blocknotify=killall -USR1 datum_gatewaygetblockcountcommand you gotta do some polling every few seconds and build your logic around that. It’s not the most elegant solution, but it works.cronevery minute or whatever