diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index 2b3dc20b..f36bc27d 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -1543,7 +1543,7 @@ Wallet.prototype.estimateSize = co(function* estimateSize(prev) { /** * Build a transaction, fill it with outputs and inputs, - * sort the members according to BIP69 (set options.noSorting + * sort the members according to BIP69 (set options.sort=false * to avoid sorting), set locktime, and template it. * @param {Object} options - See {@link Wallet#fund options}. * @param {Object[]} options.outputs - See {@link MTX#addOutput}. @@ -1581,7 +1581,7 @@ Wallet.prototype.createTX = co(function* createTX(options, force) { yield this.fund(mtx, options, force); // Sort members a la BIP69 - if (!options.noSorting) + if (options.sort !== false) mtx.sortMembers(); // Set the locktime to target value.