Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: WatchTheif on April 09, 2014, 06:34:06 PM



Title: Is blocknotify fired on every new block found?
Post by: WatchTheif on April 09, 2014, 06:34:06 PM
Is the blocknotify (that is set in the conf file) fired on every new block found in the chain or is it something else?

Cheers.


Title: Re: Is blocknotify fired on every new block found?
Post by: Ayakashi on April 09, 2014, 08:56:14 PM
It's every new block.  If you use the %s value in your shell script (or command line batch file, etc.) it will get replaced with the block's hash value.  Which you can then look up using your favorite service or using json-rpc.


Title: Re: Is blocknotify fired on every new block found?
Post by: gweedo on April 09, 2014, 08:59:49 PM
Is the blocknotify (that is set in the conf file) fired on every new block found in the chain or is it something else?

Cheers.

It takes the your command puts it into a shell by using sh -c command for every new block, it gets relayed.


Title: Re: Is blocknotify fired on every new block found?
Post by: WatchTheif on April 09, 2014, 09:31:10 PM
Thanks! The only reason I asked is because the Bitcoin wiki states something about the best block.

Cheers.