mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 06:47:52 +01:00
Merge pull request #3707 from mempool/simon/audit-optimization-dead-code
Removing dead code causing slowdown
This commit is contained in:
commit
62ef1768ec
1 changed files with 0 additions and 10 deletions
|
@ -93,17 +93,7 @@ class Audit {
|
||||||
} else {
|
} else {
|
||||||
if (!isDisplaced[tx.txid]) {
|
if (!isDisplaced[tx.txid]) {
|
||||||
added.push(tx.txid);
|
added.push(tx.txid);
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
let blockIndex = -1;
|
|
||||||
let index = -1;
|
|
||||||
projectedBlocks.forEach((block, bi) => {
|
|
||||||
const i = block.transactionIds.indexOf(tx.txid);
|
|
||||||
if (i >= 0) {
|
|
||||||
blockIndex = bi;
|
|
||||||
index = i;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
overflowWeight += tx.weight;
|
overflowWeight += tx.weight;
|
||||||
}
|
}
|
||||||
totalWeight += tx.weight;
|
totalWeight += tx.weight;
|
||||||
|
|
Loading…
Add table
Reference in a new issue