mirror of
https://github.com/mempool/mempool.git
synced 2026-08-18 13:08:44 +02:00
actually fix empty mempool health score
This commit is contained in:
parent
8dc80eadf3
commit
75cc844676
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class Audit {
|
|||
auditBlock(transactions: MempoolTransactionExtended[], projectedBlocks: MempoolBlockWithTransactions[], mempool: { [txId: string]: MempoolTransactionExtended }, useAccelerations: boolean = false)
|
||||
: { censored: string[], added: string[], fresh: string[], sigop: string[], fullrbf: string[], accelerated: string[], score: number, similarity: number } {
|
||||
if (!projectedBlocks?.[0]?.transactionIds || !mempool) {
|
||||
return { censored: [], added: [], fresh: [], sigop: [], fullrbf: [], accelerated: [], score: 0, similarity: 1 };
|
||||
return { censored: [], added: [], fresh: [], sigop: [], fullrbf: [], accelerated: [], score: 1, similarity: 1 };
|
||||
}
|
||||
|
||||
const matches: string[] = []; // present in both mined block and template
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue