Bitcoin Forum
July 25, 2017, 02:04:38 AM *
News: BIP91 seems stable: there's probably only slightly increased risk of confirmations disappearing. You should still prepare for Aug 1.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: What is the "best block" ?  (Read 556 times)
Thura
Jr. Member
*
Offline Offline

Activity: 44


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.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
-XXIII-
Member
**
Offline Offline

Activity: 112


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



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
*
Offline Offline

Activity: 1106


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!