7

In the transaction's version field, what values are legal?

What values have actually been seen in the blockchain?

6

In the transaction's version field, what values are legal?

The version field is a 32 bit unsigned integer, any value is valid. Version 0, or version numbers above the nodes CURRENT_VERSION constant are considered non-standard and are not relayed, though they can appear in blocks.

What values have actually been seen in the blockchain?

1 is the only number to have been in use at this point in time. BIP62 proposes bumping the version to 3 (skipping 2 entirely) to match the block version and avoid confusion, however this was withdrawn. BIP68 specifies that transactions spending a CSV output must have version 2 or higher.

  • 1
    BIP68 specifies that transactions spending a CSV output must have nVersion=2 or higher. BIP62 is withdrawn. – Pieter Wuille Dec 23 '16 at 19:39
  • 1
    Tweaked the response. – Anonymous Dec 27 '16 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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