Author

Topic: What is the "best block" ? (Read 812 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
January 27, 2016, 03:27:34 PM
#4
Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=
       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.
hero member
Activity: 728
Merit: 500
January 27, 2016, 02:22:38 PM
#3
Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=
       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.
member
Activity: 112
Merit: 10
January 27, 2016, 01:06:27 PM
#2
I understand it to be the 'last block' according to this post:

https://bitcointalksearch.org/topic/m.6146723
jr. member
Activity: 60
Merit: 5
January 27, 2016, 12:58:09 PM
#1
Bitcoin core 0.11.2 (bitcoind --help) prints the following:

Code:
-blocknotify=
       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.
Jump to: