wallet: rename noSorting to sort. see #122.

This commit is contained in:
Christopher Jeffrey 2017-01-29 17:28:12 -08:00
parent 80d47b8db4
commit 4740a2fff3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1543,7 +1543,7 @@ Wallet.prototype.estimateSize = co(function* estimateSize(prev) {
/** /**
* Build a transaction, fill it with outputs and inputs, * 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. * to avoid sorting), set locktime, and template it.
* @param {Object} options - See {@link Wallet#fund options}. * @param {Object} options - See {@link Wallet#fund options}.
* @param {Object[]} options.outputs - See {@link MTX#addOutput}. * @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); yield this.fund(mtx, options, force);
// Sort members a la BIP69 // Sort members a la BIP69
if (!options.noSorting) if (options.sort !== false)
mtx.sortMembers(); mtx.sortMembers();
// Set the locktime to target value. // Set the locktime to target value.