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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

builtin scenarios; fill block #57

wants to merge 10 commits into from

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

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