Skip to content

core/state: touch BAL on statedb cache#34684

Merged
jwasinger merged 1 commit intoethereum:bal-devnet-3from
s1na:bal/touch-account
Apr 8, 2026
Merged

core/state: touch BAL on statedb cache#34684
jwasinger merged 1 commit intoethereum:bal-devnet-3from
s1na:bal/touch-account

Conversation

@s1na
Copy link
Copy Markdown
Contributor

@s1na s1na commented Apr 8, 2026

The BAL reader tracker captures access list reads at the reader level. When statedb has an account cached the BAL tracker is not informed of the access. This is ok during the lifetime of a transaction because you only need to record the access the first time. It is also ok during the lifetime of a block because BAL reads are block-level (same as statedb caches).

Where I think the issue can rise is in the miner. Namely when building a block, if the miner picks up a tx which fails, it drops it and picks up another tx to include. There might be some edge case here where the failed tx which is not included poisons the cache and a future block which is included omits an account because it wasn't aware of the access.

@s1na s1na requested a review from rjl493456442 as a code owner April 8, 2026 15:36
@s1na s1na changed the title core/state: touch account BAL on statedb cache core/state: touch BAL on statedb cache Apr 8, 2026
@jwasinger jwasinger self-assigned this Apr 8, 2026
@jwasinger jwasinger merged commit 407cf11 into ethereum:bal-devnet-3 Apr 8, 2026
3 of 4 checks passed
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