mirror of
https://github.com/mempool/mempool.git
synced 2025-09-25 19:47:34 +02:00
Merge pull request #5960 from mempool/mononaut/sub-1-sat-audits
This commit is contained in:
@@ -55,7 +55,7 @@ class Audit {
|
|||||||
} else if (mempool[txid]?.lastBoosted != null && (now - (mempool[txid]?.lastBoosted || 0)) <= PROPAGATION_MARGIN) {
|
} else if (mempool[txid]?.lastBoosted != null && (now - (mempool[txid]?.lastBoosted || 0)) <= PROPAGATION_MARGIN) {
|
||||||
// tx was recently cpfp'd, miner may not have the latest effective rate
|
// tx was recently cpfp'd, miner may not have the latest effective rate
|
||||||
fresh.push(txid);
|
fresh.push(txid);
|
||||||
} else {
|
} else if (mempool[txid].effectiveFeePerVsize >= 1) { // transactions paying < 1 sat/vbyte are never considered censored
|
||||||
isCensored[txid] = true;
|
isCensored[txid] = true;
|
||||||
}
|
}
|
||||||
displacedWeight += mempool[txid]?.weight || 0;
|
displacedWeight += mempool[txid]?.weight || 0;
|
||||||
|
@@ -600,7 +600,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
// set transaction statuses
|
// set transaction statuses
|
||||||
for (const tx of blockAudit.template) {
|
for (const tx of blockAudit.template) {
|
||||||
tx.context = 'projected';
|
tx.context = 'projected';
|
||||||
if (isCensored[tx.txid]) {
|
if (isCensored[tx.txid] && tx.rate >= 1) {
|
||||||
tx.status = 'censored';
|
tx.status = 'censored';
|
||||||
} else if (inBlock[tx.txid]) {
|
} else if (inBlock[tx.txid]) {
|
||||||
tx.status = 'found';
|
tx.status = 'found';
|
||||||
|
Reference in New Issue
Block a user