Skip to content

Commit 873a883

Browse files
committed
Fix bug when txinfo is not found in mempool
1 parent cb5d61b commit 873a883

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Features/Blockcore.Features.MemoryPool/MempoolBehavior.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,9 @@ public async Task SendTrickleAsync()
573573
this.logger.LogDebug("Transaction ID '{0}' not added to inventory list, no longer in mempool.", hash);
574574
transactionsToSend.Remove(hash);
575575
}
576-
577-
// Peer told you to not send transactions at that feerate? Don't bother sending it.
578-
if (txInfo.Fee < filterrate.GetFee((int)txInfo.Size))
576+
else if (txInfo.Fee < filterrate.GetFee((int)txInfo.Size))
579577
{
578+
// Peer told you to not send transactions at that feerate? Don't bother sending it.
580579
this.logger.LogDebug("Transaction ID '{0}' not added to inventory list, bellow peers fee filter.", hash);
581580
transactionsToSend.Remove(hash);
582581
}

0 commit comments

Comments
 (0)