Skip to content

Conversation

@anuragchvn-blip
Copy link

Implements background receipt processing so spamming doesn't pause to collect receipts.

Changes:

  • TxActor flushes cache automatically in the background every N blocks
  • Configurable via --cache-flush-interval flag (default: 5 blocks)
  • Replaced --loops with --indefinite flag for clearer semantics
  • Added retry logic for transient RPC failures
  • Comprehensive documentation and unit tests

Benefits:

  • Continuous spamming without interruption
  • More realistic traffic patterns
  • Better performance for long runs
  • Cleaner UX without duration * loops confusion

Closes #395

- TxActor now automatically flushes pending tx cache in background
- Configurable flush interval via --cache-flush-interval flag (default: 5 blocks)
- Spamming continues uninterrupted during receipt collection
- Improved error handling with automatic retry and recovery detection
- Replace --loops flag with --indefinite for clearer semantics

Closes flashbots#395
@zeroXbrock
Copy link
Member

appreciate the effort @anuragchvn-blip but I already did most of this here. If you'd like to work on an issue, please drop a note in the issue so I can assign it to you. Otherwise we accidentally end up with duplicate work :)

@zeroXbrock zeroXbrock closed this Dec 19, 2025
@anuragchvn-blip
Copy link
Author

@zeroXbrock Thanks for letting me Know .

Can I work on enhancements so that i can actually contribute and be effective?

@zeroXbrock
Copy link
Member

zeroXbrock commented Dec 19, 2025

@zeroXbrock Thanks for letting me Know .

Can I work on enhancements so that i can actually contribute and be effective?

Sure, just pick any open issue that doesn't have someone assigned to it and leave a comment on it, then I can assign it to you.

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.

refactor spammer: async pendingTx cache processing

2 participants