script/node: minor.
This commit is contained in:
parent
bf0a22e138
commit
1c483aa9ca
@ -320,7 +320,8 @@ Fullnode.prototype.sendTX = co(function* sendTX(tx) {
|
||||
this._error(err);
|
||||
this.logger.warning('Verification failed for tx: %s.', tx.rhash);
|
||||
this.logger.warning('Attempting to broadcast anyway...');
|
||||
return this.pool.broadcast(tx);
|
||||
yield this.pool.broadcast(tx);
|
||||
return;
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
@ -328,7 +329,7 @@ Fullnode.prototype.sendTX = co(function* sendTX(tx) {
|
||||
if (!this.options.selfish)
|
||||
tx = tx.toInv();
|
||||
|
||||
return this.pool.broadcast(tx);
|
||||
yield this.pool.broadcast(tx);
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@ -280,7 +280,7 @@ Stack.prototype.swap = function swap(i1, i2) {
|
||||
*/
|
||||
|
||||
Stack.isStack = function isStack(obj) {
|
||||
return obj && Array.isArray(obj.items) && typeof obj.swap2 === 'function';
|
||||
return obj && Array.isArray(obj.items) && typeof obj.swap === 'function';
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@ -712,7 +712,7 @@ Wallet.prototype.createNested = function createNested(account) {
|
||||
/**
|
||||
* Create a new address (increments depth).
|
||||
* @param {(Number|String)?} account
|
||||
* @param {Boolean} change
|
||||
* @param {Number} branch
|
||||
* @returns {Promise} - Returns {@link WalletKey}.
|
||||
*/
|
||||
|
||||
@ -727,8 +727,9 @@ Wallet.prototype.createKey = co(function* createKey(account, branch) {
|
||||
|
||||
/**
|
||||
* Create a new address (increments depth) without a lock.
|
||||
* @private
|
||||
* @param {(Number|String)?} account
|
||||
* @param {Boolean} change
|
||||
* @param {Number} branche
|
||||
* @returns {Promise} - Returns {@link WalletKey}.
|
||||
*/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user