What is consensus.BIP34Height?

0

In the bitcoin source code, I am looking at chainparams.cpp. I can see on line 81 something called consensus.BIP34Height? What is that? I can't figure out what this is.

I'm not sure what else to ask other than what is this? I can't see any mention of it in the developer reference.

Oscar Chambers

Posted 2017-11-30T02:06:45.393

Reputation: 205

Question was closed 2017-11-30T05:52:09.650

Answers

0

The specification for BIP34 was created to fix a vulnerability where it was possible to make two transactions with the same TXID. To fix this a nonce was added coinbase transaction, where the height of the block must be encoded in the first bytes of the first transactions input. The definition is for when that soft fork became enforced.

Anonymous

Posted 2017-11-30T02:06:45.393

Reputation: 10 054

So consensus.BIP34Height is this nonce?Oscar Chambers 2017-11-30T02:20:56.943

It's when the soft fork became enforced. The nonce is the height.Anonymous 2017-11-30T02:21:29.487

@eponymous, I read the specification, but it did not contain much info on vulnerability. Can you share how does one create 2 different transactions with same txID? or would you want me to create a new question for it?sanket1729 2017-11-30T02:23:23.597