mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 14:22:44 +01:00
add backfilled audit stats to cached blocks
This commit is contained in:
parent
6b93e61b56
commit
c4f7b99978
1 changed files with 5 additions and 0 deletions
|
@ -480,6 +480,11 @@ class Blocks {
|
|||
totalWeight += (tx.vsize * 4);
|
||||
}
|
||||
await BlocksAuditsRepository.$setSummary(hash, totalFees, totalWeight);
|
||||
const cachedBlock = this.blocks.find(block => block.id === hash);
|
||||
if (cachedBlock) {
|
||||
cachedBlock.extras.expectedFees = totalFees;
|
||||
cachedBlock.extras.expectedWeight = totalWeight;
|
||||
}
|
||||
|
||||
indexedThisRun++;
|
||||
indexedTotal++;
|
||||
|
|
Loading…
Add table
Reference in a new issue