Skip to content

Conversation

@kuny0707
Copy link
Contributor

This PR adds few additional checks in the transaction pool which are derived from a fix in geth and helps in prevention of DoS attacks.

Referencing details from geth's PR and matic bro's PR.

This PR adds two new rules to the transaction pool:

  • A future transaction can not evict a pending transaction
  • A transaction can not overspend funds of a sender

@kuny0707 kuny0707 marked this pull request as ready for review April 20, 2023 07:04
@kuny0707 kuny0707 changed the title core/txpool: implement additional DoS defenses from geth feat(core/txpool): implement additional DoS defenses from geth Apr 20, 2023
@kuny0707 kuny0707 merged commit 54049cc into bttcprotocol:develop Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants