Skip to content

Conversation

@sveitser
Copy link
Collaborator

@sveitser sveitser commented Dec 4, 2025

TODO

  • Add churn command to local demo

doc: move demo staking to developer docs file
Pre-sign all transactions and save to a log file for reliable resume.
Execute phases in order (FundEth → FundEsp → Approve → Delegate) with
two-level flow control: outer semaphore limits unconfirmed txs, inner
semaphore limits RPC concurrency. Single-sender phases use batches of 64
to avoid geth txpool drops.

Changes:
- Add TxLog for pre-signed transaction storage and recovery
- Add TxPhase enum for ordered phase execution
- Add map_concurrent utility for bounded parallel execution
- Replace --batch-size/--delay with --log-path/--concurrency
- Add DeployContracts demo command (testing feature)
@sveitser
Copy link
Collaborator Author

/gemini review

- Add apply_with_backpressure method for concurrent transaction execution
  with configurable concurrency and proper phase synchronization
- Add concurrency parameter to demo stake, delegate, undelegate, and churn
- Add stress tests running on Reth with 1s block time (10k delegators)
- Refactor TestSystem to support external RPC endpoints via deploy_to_external
- Add pre-execution balance checks for ESP and ETH to fail fast
- Tune tx_log parameters: reduce MAX_UNCONFIRMED to 1000, increase
  CONFIRMATION_TIMEOUT to 180s, add 100 gwei gas floor
- Add RethContainer helper for running Reth in Docker during tests
Log submission progress every 100 transactions and at completion
to provide visibility during large batch operations.
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.

3 participants