Skip to content

Fix mempool#969

Merged
shargon merged 1 commit intomaster-n3from
shargon-patch-1
Jan 14, 2026
Merged

Fix mempool#969
shargon merged 1 commit intomaster-n3from
shargon-patch-1

Conversation

@shargon
Copy link
Member

@shargon shargon commented Jan 14, 2026

This pull request makes a small but important logic correction in the ConsensusService class. The change updates the condition for canceling new transactions based on their system fee.

  • The transaction cancellation logic in the MemPool_NewTransaction method was updated: transactions are now canceled if their SystemFee is greater than or equal to dbftSettings.MaxBlockSystemFee, instead of less than or equal to.

@github-actions github-actions bot added the N3 label Jan 14, 2026
@shargon shargon added the bug label Jan 14, 2026
@shargon shargon merged commit fe39139 into master-n3 Jan 14, 2026
3 checks passed
@shargon shargon deleted the shargon-patch-1 branch January 14, 2026 08:11
private void MemPool_NewTransaction(object sender, NewTransactionEventArgs e)
{
e.Cancel = e.Transaction.SystemFee <= dbftSettings.MaxBlockSystemFee;
e.Cancel = e.Transaction.SystemFee >= dbftSettings.MaxBlockSystemFee;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
e.Cancel = e.Transaction.SystemFee >= dbftSettings.MaxBlockSystemFee;
e.Cancel = e.Transaction.SystemFee > dbftSettings.MaxBlockSystemFee;

shargon added a commit that referenced this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants