Clearing a delegation at nonce 0 wipes the authority's storage
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Start with src/ethereum/forks/prague/vm/eoa_delegation.py, especially set_delegation around lines 222–228, and trace how set_code reaches modify_state in src/ethereum/forks/prague/state_tracker.py. Check existing tests for clearing a delegation when the authority has nonce 0 and storage. Done when that case preserves storage and the relevant tests pass across Prague and later forks.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Metadata
- Hardfork: Prague and later
What was wrong?
set_delegation sets the code of the authority before it increments the nonce (prague/vm/eoa_delegation.py, lines 222-228). set_code goes through modify_state, which destroys an account that is empty right after the change, storage included (prague/state_tracker.py, line 484).
So take an authority with nonce 0, balance 0, a delegation indicator as its code and some storage, and an authorization from it at nonce 0 to the zero address. Clearing the code leaves the account empty for a moment, destroy_account wipes its storage, and increment_nonce then recreates it with nonce 1 and no storage.
Such an account cannot arise from transactions, since every authorization raises the nonce, but a genesis or a test pre-state can hold it. EIP-161 deletes touched empty accounts at the end of the transaction, and by then this account has nonce 1. Incrementing the nonce first, or deleting only at the end of the transaction, would keep the storage.
Is wiping the storage here intended? If not, swapping the two calls in set_delegation keeps it, in every fork from Prague.
Sources
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 543
- Merge medio
- 2g 19h
- PR unite (30g)
- 81
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ethereum/execution-specs
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ethereum/execution-specs#4101 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ethereum/execution-specs#4054 ·
I maintainer di solito rispondono entro 1 giorno
-
BesuTransitionTool._evaluate leaves output.result.traces as None and fails on missing trace filesForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ethereum/execution-specs#4015 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`execute deploy-required-contracts` crashes when `--fork` is not givenForse di nuovo libera @Somanshu-Jha l’ha presa 11 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ethereum/execution-specs#3996 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
docs(blockchain_test): consumption steps say an invalid block is always last, but fixtures now continue after oneForse già presa @reginaldalfret l’ha presa 17 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
ethereum/execution-specs#3859 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ethereum/execution-specs
Issue simili
-
area/auth comp/agent P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NousResearch/hermes-agent#161417 ·
I maintainer di solito rispondono entro 1 giorno
-
Hourly-aggregate projection test depends on other tests' spansForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
future-agi/future-agi#4737 ·
I maintainer di solito rispondono entro 1 giorno
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backendForse già presa @patelshivani2283-lab l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
fedora-infra/anitya#2278 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dao-AILab/flash-attention#3251 ·
I maintainer di solito rispondono entro 2 giorni