mirror of
https://github.com/Retropex/mempool.git
synced 2025-05-12 18:20:41 +02:00
fix coinbase audit
This commit is contained in:
parent
00811a438d
commit
125b65e586
@ -29,6 +29,7 @@ class Audit {
|
||||
let matchedWeight = 0;
|
||||
let projectedWeight = 0;
|
||||
|
||||
let countCb = 0;
|
||||
let spamWeight = 0;
|
||||
let blkWeight = 0;
|
||||
|
||||
@ -82,12 +83,15 @@ class Audit {
|
||||
}
|
||||
|
||||
for (const tx of transactions){
|
||||
if (countCb !== 0){
|
||||
if(tx.spam !== undefined){
|
||||
if (tx.spam == true){
|
||||
spamWeight += tx.weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
countCb += 1;
|
||||
}
|
||||
|
||||
// we can expect an honest miner to include 'displaced' transactions in place of recent arrivals and censored txs
|
||||
// these displaced transactions should occupy the first N weight units of the next projected block
|
||||
|
Loading…
Reference in New Issue
Block a user