mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Ignore coinbase tx in block health calculation
This commit is contained in:
parent
00cbb5d0d8
commit
2ff930ef3e
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ class Audit {
|
|||
}
|
||||
|
||||
const numCensored = Object.keys(isCensored).length;
|
||||
const score = matches.length > 0 ? (matches.length / (matches.length + numCensored)) : 0;
|
||||
const numMatches = matches.length - 1; // adjust for coinbase tx
|
||||
const score = numMatches > 0 ? (numMatches / (numMatches + numCensored)) : 0;
|
||||
|
||||
return {
|
||||
censored: Object.keys(isCensored),
|
||||
|
|
Loading…
Add table
Reference in a new issue