Skip to content

Commit e98121e

Browse files
authored
Merge pull request bitcoin#1431 from bigspider/psbtv2-fix-txversion
PSBTv2: Relax transaction version requirement
2 parents aa5b0a1 + 5cf6511 commit e98121e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0370.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ PSBTv2 introduces new roles and modifies some existing roles.
235235
===Creator===
236236

237237
In PSBTv2, the Creator initializes the PSBT with 0 inputs and 0 outputs.
238-
The PSBT version number is set to 2. The transaction version number must be set to at least 2. <ref>'''Why does the transaction version number need to be at least 2?''' The transaction version number is part of the validation rules for some features such as OP_CHECKSEQUENCEVERIFY. Since it is backwards compatible, and there are other ways to disable those features (e.g. through sequence numbers), it is easier to require transactions be able to support these features than to try to negotiate the transaction version number.</ref>
238+
The PSBT version number is set to 2.
239239
The Creator should also set PSBT_GLOBAL_FALLBACK_LOCKTIME.
240-
If the Creator is not also a Constructor and will be giving the PSBT to others to add inputs and outputs, the PSBT_GLOBAL_TX_MODIFIABLE field must be present and and the Inputs Modifiable and Outputs Modifiable flags set appropriately.
240+
If the Creator is not also a Constructor and will be giving the PSBT to others to add inputs and outputs, the PSBT_GLOBAL_TX_MODIFIABLE field must be present and the Inputs Modifiable and Outputs Modifiable flags set appropriately; moreover, the transaction version number must be set to at least 2. <ref>'''Why does the transaction version number need to be at least 2?''' The transaction version number is part of the validation rules for some features such as OP_CHECKSEQUENCEVERIFY. Since it is backwards compatible, and there are other ways to disable those features (e.g. through sequence numbers), it is easier to require transactions be able to support these features than to try to negotiate the transaction version number.</ref>
241241
If the Creator is a Constructor and no inputs and outputs will be added by other entities, PSBT_GLOBAL_TX_MODIFIABLE may be omitted.
242242

243243
===Constructor===

0 commit comments

Comments
 (0)