Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Yves Cuicui on August 30, 2013, 05:46:09 PM



Title: What's new in version 2 of Block header message ?
Post by: Yves Cuicui on August 30, 2013, 05:46:09 PM
The version field in block header message is now '2'.
Does someone know what is the difference compared to version 1?
Thanks


Title: Re: What's new in version 2 of Block header message ?
Post by: Peter Todd on August 30, 2013, 05:57:49 PM
Read this: https://en.bitcoin.it/wiki/BIP_0034


Title: Re: What's new in version 2 of Block header message ?
Post by: Yves Cuicui on August 30, 2013, 06:48:16 PM
Many thanks


Title: Re: What's new in version 2 of Block header message ?
Post by: fpgaminer on August 31, 2013, 03:16:00 AM
Quote
95% rule ("Point of no return"): If 950 of the last 1,000 blocks are version 2 or greater, reject all version 1 blocks. (testnet3: 75 of last 100)
Are we here yet on mainnet?


Title: Re: What's new in version 2 of Block header message ?
Post by: joshlang on August 31, 2013, 03:49:39 AM
Yeah - At block 227930, the previous 1000 contained the supermajority of 950.


Title: Re: What's new in version 2 of Block header message ?
Post by: fpgaminer on August 31, 2013, 07:53:35 AM
Quote
Yeah - At block 227930, the previous 1000 contained the supermajority of 950.
Very cool  8)  Thank you for taking the time to look that up.


Title: Re: What's new in version 2 of Block header message ?
Post by: Yves Cuicui on September 05, 2013, 01:34:46 PM
Anyway, this is not an information we can rely on.

I notice many blocks pretending to be version 2 but showing bad height encode values

See
http://blockexplorer.com/block/00000000000005d024e86337ca13439b7f3dbd5e1a005b1dbe510150d45b6e98 (http://blockexplorer.com/block/00000000000005d024e86337ca13439b7f3dbd5e1a005b1dbe510150d45b6e98) is block 200433 and pretends to be 436591499
http://blockexplorer.com/block/00000000000003c6947e260dc80d6ab426771a7ba9d8d5fb58ff66a0db26c361 (http://blockexplorer.com/block/00000000000003c6947e260dc80d6ab426771a7ba9d8d5fb58ff66a0db26c361) is block 199914and pretends to be 436591499

May be such blocks must not be accepted by the network as the BIP34 is now enforced?


Title: Re: What's new in version 2 of Block header message ?
Post by: kjj on September 05, 2013, 02:23:33 PM
Anyway, this is not an information we can rely on.

I notice many blocks pretending to be version 2 but showing bad height encode values

See
http://blockexplorer.com/block/00000000000005d024e86337ca13439b7f3dbd5e1a005b1dbe510150d45b6e98 is block 200433 and pretends to be 436591499
http://blockexplorer.com/block/00000000000003c6947e260dc80d6ab426771a7ba9d8d5fb58ff66a0db26c361 is block 199914and pretends to be 436591499

May be such blocks must not be accepted by the network as the BIP34 is now enforced?

Early on, there was some debate about the proper encoding.  See this discussion (https://github.com/bitcoin/bitcoin/pull/1526) for information on why the bogus encodings were allowed (specifically a post from gmaxwell on July 2nd).


Title: Re: What's new in version 2 of Block header message ?
Post by: Yves Cuicui on September 05, 2013, 02:35:44 PM
Do you mean that some miners start building v2 blocks on main network while the debate was not closed?


Title: Re: What's new in version 2 of Block header message ?
Post by: kjj on September 05, 2013, 03:00:31 PM
For something like this, a supermajority of miners have to move in lockstep, or there is risk of forking.


Title: Re: What's new in version 2 of Block header message ?
Post by: joshlang on September 05, 2013, 06:13:07 PM
Anyway, this is not an information we can rely on.

I notice many blocks pretending to be version 2 but showing bad height encode values

See
http://blockexplorer.com/block/00000000000005d024e86337ca13439b7f3dbd5e1a005b1dbe510150d45b6e98 is block 200433 and pretends to be 436591499
http://blockexplorer.com/block/00000000000003c6947e260dc80d6ab426771a7ba9d8d5fb58ff66a0db26c361 is block 199914and pretends to be 436591499

May be such blocks must not be accepted by the network as the BIP34 is now enforced?

After block 227930, it's information you can rely on.