Fix/anvil sandbox startup#5
Open
mbork-ipor wants to merge 2 commits into
Open
Conversation
Free-tier RPCs no longer serve state at block 29007455 (Alchemy: "error code 4444: pruned history unavailable"), so the fork started but every state fetch — including the role grant — failed. Note: any pinned block ages past the pruning horizon eventually; this one (2026-07-09) will too and will need the same refresh. The durable alternative is forking latest at the cost of reproducibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes for the compose sandbox failing to grant ALPHA_ROLE on startup:
sleep 3— forking overa remote RPC routinely takes longer than 3 s, so the grant fired before
anvil was listening;
pruned state that old ("error code 4444: pruned history unavailable").
Any pinned block ages out eventually; this one (2026-07-09) will need
the same refresh in the future.
Symptom in both cases: the bot loops on revert 0x068ca9d8
(
AccessManagedUnauthorized) because the alpha wallet never got the role.