Bitcoin Forum
June 20, 2024, 10:45:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is blocknotify fired on every new block found?  (Read 766 times)
WatchTheif (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 09, 2014, 06:34:06 PM
 #1

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.
Ayakashi
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile WWW
April 09, 2014, 08:56:14 PM
 #2

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.
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
April 09, 2014, 08:59:49 PM
 #3

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.
WatchTheif (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 09, 2014, 09:31:10 PM
 #4

Thanks! The only reason I asked is because the Bitcoin wiki states something about the best block.

Cheers.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!