Skip to content

Commit 282703b

Browse files
Merge pull request #87 from BitGo/BTC-2285
feat(psbt): disable unsafe non-segwit sign warning by default
2 parents f5f3c94 + c221990 commit 282703b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/psbt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Psbt {
7676
// behavior to not require the previous transaction and instead
7777
// use a witnessUtxo.
7878
__UNSAFE_SIGN_NONSEGWIT: true,
79-
__WARN_UNSAFE_SIGN_NONSEGWIT: true,
79+
__WARN_UNSAFE_SIGN_NONSEGWIT: false,
8080
__TX_FROM_BUFFER: buf =>
8181
this.constructor.transactionFromBuffer(buf, this.opts.network),
8282
};

ts_src/psbt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class Psbt {
150150
// behavior to not require the previous transaction and instead
151151
// use a witnessUtxo.
152152
__UNSAFE_SIGN_NONSEGWIT: true,
153-
__WARN_UNSAFE_SIGN_NONSEGWIT: true,
153+
__WARN_UNSAFE_SIGN_NONSEGWIT: false,
154154
__TX_FROM_BUFFER: buf =>
155155
(this.constructor as typeof Psbt).transactionFromBuffer(
156156
buf,

0 commit comments

Comments
 (0)