Skip to content

feat(core): simulate realistic network conditions#621

Open
AvhiMaz wants to merge 3 commits intosolana-foundation:mainfrom
AvhiMaz:feat/simulate-network-conditions
Open

feat(core): simulate realistic network conditions#621
AvhiMaz wants to merge 3 commits intosolana-foundation:mainfrom
AvhiMaz:feat/simulate-network-conditions

Conversation

@AvhiMaz
Copy link
Copy Markdown
Contributor

@AvhiMaz AvhiMaz commented Apr 20, 2026

Closes #529

  • Add --transaction-drop-rate <0.0-1.0> flag: randomly drops transactions with the given probability, simulating
    packet loss or leader rejection
  • Add --transaction-execution-delay-ms <ms> flag: applies a random delay (0 to N ms) before executing each
    transaction, simulating out-of-order processing under high throughput
  • Add TransactionStatusEvent::Dropped variant returned to the RPC client when a transaction is dropped

Usage:

surfpool start --transaction-drop-rate 0.1 --transaction-execution-delay-ms 200

AvhiMaz added 3 commits April 20, 2026 08:49
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
@AvhiMaz AvhiMaz force-pushed the feat/simulate-network-conditions branch from f736abe to 5933800 Compare April 20, 2026 03:40
@AvhiMaz AvhiMaz marked this pull request as ready for review April 20, 2026 03:53
@AvhiMaz
Copy link
Copy Markdown
Contributor Author

AvhiMaz commented Apr 20, 2026

the ci failure in test_time_travel_absolute_timestamp appears to be a pre-existing flaky test unrelated to this mr.

can you review this, @MicaiahReid @lgalabru ? thanks :)

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.

Simulate realistic network conditions

1 participant