0

This question already has an answer here:

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.

marked as duplicate by Pieter Wuille, Andrew Chow Nov 30 '17 at 5:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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.

  • So consensus.BIP34Height is this nonce? – Oscar Chambers Nov 30 '17 at 2:20
  • It's when the soft fork became enforced. The nonce is the height. – Anonymous Nov 30 '17 at 2:21
  • @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 Nov 30 '17 at 2:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.