File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ export class Psbt {
117
117
__NON_WITNESS_UTXO_BUF_CACHE : [ ] ,
118
118
__TX_IN_CACHE : { } ,
119
119
__TX : ( this . data . globalMap . unsignedTx as PsbtTransaction ) . tx ,
120
+ // Psbt's predecesor (TransactionBuilder - now removed) behavior
121
+ // was to not confirm input values before signing.
120
122
// Even though we highly encourage people to get
121
123
// the full parent transaction to verify values, the ability to
122
124
// sign non-segwit inputs without the full transaction was often
@@ -1294,7 +1296,8 @@ function getHashForSig(
1294
1296
console . warn (
1295
1297
'Warning: Signing non-segwit inputs without the full parent transaction ' +
1296
1298
'means there is a chance that a miner could feed you incorrect information ' +
1297
- 'to trick you into paying large fees. You are not ' +
1299
+ 'to trick you into paying large fees. This behavior is the same as Psbt\'s predecesor ' +
1300
+ '(TransactionBuilder - now removed) when signing non-segwit scripts. You are not ' +
1298
1301
'able to export this Psbt with toBuffer|toBase64|toHex since it is not ' +
1299
1302
'BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n' +
1300
1303
'*********************' ,
You can’t perform that action at this time.
0 commit comments