#1477 remove TransactionBuilder and all references to it
This commit is contained in:
parent
533d6c2e6d
commit
5c6243f4e4
10 changed files with 4 additions and 6145 deletions
|
@ -22,5 +22,3 @@ var script_1 = require('./script');
|
|||
exports.opcodes = script_1.OPS;
|
||||
var transaction_1 = require('./transaction');
|
||||
exports.Transaction = transaction_1.Transaction;
|
||||
var transaction_builder_1 = require('./transaction_builder');
|
||||
exports.TransactionBuilder = transaction_builder_1.TransactionBuilder;
|
||||
|
|
|
@ -69,8 +69,7 @@ class Psbt {
|
|||
__NON_WITNESS_UTXO_BUF_CACHE: [],
|
||||
__TX_IN_CACHE: {},
|
||||
__TX: this.data.globalMap.unsignedTx.tx,
|
||||
// Old TransactionBuilder behavior was to not confirm input values
|
||||
// before signing. Even though we highly encourage people to get
|
||||
// Even though we highly encourage people to get
|
||||
// the full parent transaction to verify values, the ability to
|
||||
// sign non-segwit inputs without the full transaction was often
|
||||
// requested. So the only way to activate is to use @ts-ignore.
|
||||
|
@ -998,8 +997,7 @@ function getHashForSig(inputIndex, input, cache, forValidate, sighashTypes) {
|
|||
console.warn(
|
||||
'Warning: Signing non-segwit inputs without the full parent transaction ' +
|
||||
'means there is a chance that a miner could feed you incorrect information ' +
|
||||
'to trick you into paying large fees. This behavior is the same as the old ' +
|
||||
'TransactionBuilder class when signing non-segwit scripts. You are not ' +
|
||||
'to trick you into paying large fees. You are not ' +
|
||||
'able to export this Psbt with toBuffer|toBase64|toHex since it is not ' +
|
||||
'BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n' +
|
||||
'*********************',
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue