From 38e5a0f61544d64cc7a6a725fe8cd33b6d9a3b38 Mon Sep 17 00:00:00 2001 From: Mokhtar Naamani Date: Tue, 24 Jan 2017 10:10:25 +0200 Subject: [PATCH] add option to disable bip69 in Wallet.send --- lib/wallet/wallet.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index b112dced..1a5b7a42 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -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)