Merge pull request #122 from mnaamani/bip69-optional
add option to disable bip69 in Wallet.send
This commit is contained in:
commit
94ec846fdd
@ -1543,8 +1543,8 @@ Wallet.prototype.estimateSize = co(function* estimateSize(prev) {
|
||||
|
||||
/**
|
||||
* Build a transaction, fill it with outputs and inputs,
|
||||
* sort the members according to BIP69, set locktime,
|
||||
* and template it.
|
||||
* sort the members according to BIP69 (set options.noSorting
|
||||
* to avoid sorting), set locktime, and template it.
|
||||
* @param {Object} options - See {@link Wallet#fund options}.
|
||||
* @param {Object[]} options.outputs - See {@link MTX#addOutput}.
|
||||
* @returns {Promise} - Returns {@link MTX}.
|
||||
@ -1572,7 +1572,8 @@ Wallet.prototype.createTX = co(function* createTX(options, force) {
|
||||
yield this.fund(mtx, options, force);
|
||||
|
||||
// Sort members a la BIP69
|
||||
mtx.sortMembers();
|
||||
if(!options.noSorting)
|
||||
mtx.sortMembers();
|
||||
|
||||
// Set the locktime to target value.
|
||||
if (options.locktime != null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user