Title: BIP: 34 and the ERROR: AcceptBlock() : block height mismatch in coinbase Post by: tuaris on May 07, 2015, 08:36:39 AM I understand the design behind BIP: 34. However I don't understand it's implementation in main.cpp (https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L2673).
Can someone explain (in a somewhat 'dumbed down' fashion) what is happening here: https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L2673. Specifically this check: Code: CScript expect = CScript() << nHeight; Why is this coinbase being rejected by the above code? This specific example is version 2 (PoS) and has TX messaging Code: 02000000 Here is the code that generates the serialized height in Python Code: def encode_coinbase_nheight(n, min_size = 1): |