Bitcoin Forum
June 19, 2024, 08:18:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the "best block" ?  (Read 783 times)
Thura (OP)
Jr. Member
*
Offline Offline

Activity: 60
Merit: 5


View Profile
January 27, 2016, 05:58:09 PM
 #1

Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=<cmd>
       Execute command when the best block changes (%s in cmd is replaced by
       block hash)

I was wondering what this "best block" would be, but funny: I did not find anything about it in the internet.

So does anyone know what this 'best block' is?

Why should one use the notification for it? I enabled it to notify me via email, but it spams, so I disabled it.
-XXIII-
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 27, 2016, 06:06:27 PM
 #2

I understand it to be the 'last block' according to this post:

https://bitcointalk.org/index.php?topic=563671.msg6146723#msg6146723
bassguitarman
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
January 27, 2016, 07:22:38 PM
 #3

Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=<cmd>
       Execute command when the best block changes (%s in cmd is replaced by
       block hash)

I was wondering what this "best block" would be, but funny: I did not find anything about it in the internet.

So does anyone know what this 'best block' is?

Why should one use the notification for it? I enabled it to notify me via email, but it spams, so I disabled it.

I believe the "best block" is the valid block with the highest height.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
January 27, 2016, 08:27:34 PM
 #4

Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=<cmd>
       Execute command when the best block changes (%s in cmd is replaced by
       block hash)

I was wondering what this "best block" would be, but funny: I did not find anything about it in the internet.

So does anyone know what this 'best block' is?

Why should one use the notification for it? I enabled it to notify me via email, but it spams, so I disabled it.

I believe the "best block" is the valid block with the highest height.
Not necessarily. The best block is the block whose blockchain has the highest sum of work. The block has a parameter to indicate its difficulty and the longest blockchain is the blockchain that has the highest sum of those parameters. The best block would then be the block at the tip of that blockchain.

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!