|
|
@ -1680,10 +1680,6 @@ WalletService.prototype._validateAndSanitizeTxOpts = function(wallet, opts, cb) |
|
|
|
|
|
|
|
async.series([ |
|
|
|
|
|
|
|
function(next) { |
|
|
|
if (!checkRequired(opts, ['outputs'], next)) return; |
|
|
|
next(); |
|
|
|
}, |
|
|
|
function(next) { |
|
|
|
// feePerKb is required unless inputs & fee are specified
|
|
|
|
if (!_.isNumber(opts.feePerKb) && !(opts.inputs && _.isNumber(opts.fee))) |
|
|
@ -1755,6 +1751,10 @@ WalletService.prototype._validateAndSanitizeTxOpts = function(wallet, opts, cb) |
|
|
|
WalletService.prototype.createTx = function(opts, cb) { |
|
|
|
var self = this; |
|
|
|
|
|
|
|
opts = opts || {}; |
|
|
|
|
|
|
|
if (!checkRequired(opts, ['outputs'], cb)) return; |
|
|
|
|
|
|
|
function getChangeAddress(wallet, cb) { |
|
|
|
if (wallet.singleAddress) { |
|
|
|
self.storage.fetchAddresses(self.walletId, function(err, addresses) { |
|
|
|