-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prevent processing same transaction twice (#282)
We've seen cases of pool transactions being processed multiple times. It's possible to happen if RPC node returns outdated transactions from pool. We only cache seen pool transactions for single block, so if new block is minted but RPC returns pool before that block it could trigger twice. Now we cache all processed transactions - this should be managable memory wise and prevent it from ever happening.
- Loading branch information
Showing
1 changed file
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters