Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core/txpool): implement additional DoS defenses from geth #46

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

yuekun0707
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

@yuekun0707 yuekun0707 marked this pull request as ready for review April 20, 2023 07:04
@yuekun0707 yuekun0707 changed the title core/txpool: implement additional DoS defenses from geth feat(core/txpool): implement additional DoS defenses from geth Apr 20, 2023
@yuekun0707 yuekun0707 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