Skip to content

feat: spam rpc#468

Open
0xl3on wants to merge 3 commits intoflashbots:mainfrom
0xl3on:spam-rpc-method
Open

feat: spam rpc#468
0xl3on wants to merge 3 commits intoflashbots:mainfrom
0xl3on:spam-rpc-method

Conversation

@0xl3on
Copy link
Contributor

@0xl3on 0xl3on commented Mar 3, 2026

Motivation

Hey guys, pretty big feature so sorry for the big PR:

Closes #462

Each RPC method is strongly typed clap subcommand, as mentioned in the issue. eth_sendRawTransaction is excluded because nonce is baked into the signed payload so spamming would fail.

Solution

Changes from existing code:

  • Moved inner logic from collect_latency_metrics at test_scenario.rs to a shared function at bucket.rs so we can re-use across tx and rpc spam
  • Extended the gen html logic to also support rpc spam specific metrics

New code

  • Added rpc command
  • New rpc.rs module with the spam logic

PR Checklist

  • Added Tests
  • Added Documentation
  • Ran cargo +nightly clippy --workspace --lib --examples --tests --benches --all-features --locked --fix
  • Ran cargo fmt --all
  • Note breaking changes in PR description, if applicable
  • update changelogs
    • Update CHANGELOG.md in each affected crate
    • add a high-level description in the root changelog

@0xl3on 0xl3on requested a review from zeroXbrock as a code owner March 3, 2026 15:47
@zeroXbrock
Copy link
Member

thanks @0xl3on -- should be able to review tomorrow!

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.

rpc command

2 participants