script/node: minor.

This commit is contained in:
Christopher Jeffrey 2016-10-02 17:45:45 -07:00
parent bf0a22e138
commit 1c483aa9ca
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 7 additions and 5 deletions

View File

@ -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);
});
/**

View File

@ -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';
};
/*

View File

@ -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}.
*/