Skip to content

Add extra optional withdrawals to prefund EOAs#144

Open
jochem-brouwer wants to merge 2 commits into
mainfrom
optional-extra-withdrawals
Open

Add extra optional withdrawals to prefund EOAs#144
jochem-brouwer wants to merge 2 commits into
mainfrom
optional-extra-withdrawals

Conversation

@jochem-brouwer
Copy link
Copy Markdown
Collaborator

Part of gas-repricings in context of EIP-2780, this PR adds an optional file to prefund EOAs. This is part of the funding, as after funding benchmarkoor takes a snapshot and restarts clients, forcing them to read this from disk. This ensures we do not have to bloat accounts or create a new snapshot a-la-jochemnet.

NOTE: this create 15001 withdrawals in a single block which could be problematic.

Related PR on execution-specs: ethereum/execution-specs#2837

Comment on lines +1201 to +1207
sender_addresses_path = Path("sender_addresses.txt")
if sender_addresses_path.exists():
sender_lines = [
ln.strip()
for ln in sender_addresses_path.read_text(encoding="utf-8").splitlines()
if ln.strip()
]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this a good idea to pre-calculate all the withdraw account in sender_addresses.txt, we could use some addr calculation package here.

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.

2 participants