You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 28d672a
Browse filesBrowse the repository at this point in the historyBrowse files
Derive Autobahn AppHash from the storage hash builder (CON-444) (#4306)
## Summary
- Take Autobahn's AppHash from `GigaStorageManager.AppHashBuilder()`.
Execution reports the block hash before the block runs. The state store
reports the state hash and BUD hash, and a zero receipt hash until
execution reports a real one. `GigaActivationHeight` is genesis
`InitialHeight`.
- Let execution run ahead of app-hash proposal. `FinalizeBlock` and
`Commit` hand each committed block to a second loop that waits for the
builder's listener and calls `PushAppHash`. Both handoffs hold 128
blocks. The storage-tail timer stays on the execute loop.
- On restart, backfill proposes every committed road through the app
tip, including the road already proposed, through the same
`finishExecuteBlock` path. The listener does not replay; its newest
published hash must be the app tip, and the next callback is the block
after it. Backfill uses one `GetValidators()` snapshot at the tip.
Closing-road stake is a follow-up.
- An execute stop cancels the hash wait without canceling an in-progress
proposal. The listener's context ends when execution returns, so a later
callback cannot block the builder.
- The router no longer opens the equivocation vault or prunes from
`RetainHeight`, and `hash-vault-disabled-unsafe` is removed. Mock and
EVM-only both feed the builder. A committee already voting on ABCI
`ResponseFinalizeBlock.AppHash` cannot roll onto this binary. Autobahn
has not launched, so there is nothing to migrate. The rollout is a
coordinated start of this binary.
## Test plan
- [x] `TestExecuteBuffersPendingAppHashes` — a run of commits finishes
before the hash loop receives them
- [x] `TestBackfillAppHashesReadsTheBuilder` — the already-proposed road
is replayed, and a missing hash fails the restart
- [x] `TestListenerContinuesAtTheAppTip` and
`TestRunExecuteRejectsAListenerOffTheAppTip` — a restart refuses a
listener that is not at the app tip
- [x] `TestRunAppHashesStopsWaitingWhenExecuteStops` — an execute stop
cancels the hash wait and not the proposal
- [x] `TestRunExecuteStopsTheListenerWhenItReturns` — hangs if the
listener keeps the parent context after execution returns
- [x] `go test -race` on `./sei-tendermint/internal/p2p`
- [x] CI
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments