mempool: minor.
This commit is contained in:
parent
c38a4fc031
commit
bf4c890b88
@ -196,14 +196,15 @@ Mempool.prototype.addBlock = co(function* addBlock(block, txs) {
|
||||
*/
|
||||
|
||||
Mempool.prototype._addBlock = co(function* addBlock(block, txs) {
|
||||
var entries = [];
|
||||
var i, entry, tx, hash;
|
||||
var i, entries, entry, tx, hash;
|
||||
|
||||
if (this.totalTX === 0) {
|
||||
this.tip = block.hash;
|
||||
return;
|
||||
}
|
||||
|
||||
entries = [];
|
||||
|
||||
for (i = txs.length - 1; i >= 1; i--) {
|
||||
tx = txs[i];
|
||||
hash = tx.hash('hex');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user