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) {
|
Mempool.prototype._addBlock = co(function* addBlock(block, txs) {
|
||||||
var entries = [];
|
var i, entries, entry, tx, hash;
|
||||||
var i, entry, tx, hash;
|
|
||||||
|
|
||||||
if (this.totalTX === 0) {
|
if (this.totalTX === 0) {
|
||||||
this.tip = block.hash;
|
this.tip = block.hash;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entries = [];
|
||||||
|
|
||||||
for (i = txs.length - 1; i >= 1; i--) {
|
for (i = txs.length - 1; i >= 1; i--) {
|
||||||
tx = txs[i];
|
tx = txs[i];
|
||||||
hash = tx.hash('hex');
|
hash = tx.hash('hex');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user