Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builtin scenarios; fill block #57

Merged
merged 10 commits into from
Dec 4, 2024
Merged

builtin scenarios; fill block #57

merged 10 commits into from
Dec 4, 2024

Conversation

zeroXbrock
Copy link
Member

  • add 'run' command; runs builtin scenarios

Motivation

zero-config command to spam your node with txs that fill the blocks to their limit

Solution

  • hard-coded contract with a method consumeGas(uint256) that consumes a specific amount of gas per call
  • fetch block gas limit from rpc, generate transactions that use block_limit / num_txs gas
  • send txs via TimedSpammer with a LogCallback

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@zeroXbrock zeroXbrock merged commit 69f0021 into main Dec 4, 2024
5 checks passed
@zeroXbrock zeroXbrock deleted the default-scenarios-2 branch December 4, 2024 21:56
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.

1 participant