test(eip-8297): verify RPC state across cache invalidation - #3448
Closed
chugarchugarr wants to merge 1 commit into
Closed
test(eip-8297): verify RPC state across cache invalidation#3448chugarchugarr wants to merge 1 commit into
chugarchugarr wants to merge 1 commit into
Conversation
chugarchugarr
force-pushed
the
test/pbt-cache-invalidation
branch
from
August 26, 2026 11:44
194b6ac to
233d605
Compare
Author
|
Closing this contribution to keep my active upstream review surface focused on #3443. This PR received no maintainer review and its fork workflows remained authorization-gated, so I am not asking the project to spend review bandwidth on it. The branch and diff remain available and can be reopened if a maintainer specifically wants to continue the RPC cache-invalidation oracle. |
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.
Description
Advances #3333 by making stale state-RPC reads observable without encoding any client's private cache implementation. This PR does not close the future MPT→PBT transition case because the target branch does not yet implement that activation boundary.
When
postVerificationsare present, the Engine consumer now uses the fill-time assertions as a live RPC oracle:The BinaryTree fixture crosses the 128-block horizon from #3333: one slot starts at
1, changes to2in block 1, remains untouched through block 128, then changes to3in block 129. A stale genesis or pre-flush value fails even when block execution and the committed state root succeed.Transition boundary
projects/binary-triecurrently runs PBT from genesis. The fixture therefore exercises cache churn on the available PBT provider, not an MPT-backed cache surviving an actual flip. When a real activation fixture exists, the same RPC oracle can observe that transition-specific failure without client hooks.The oracle remains opt-in through the existing
--post-verificationsfill flag.Verification
uv run pytest -q packages/testing/src/execution_testing/cli/pytest_commands/plugins/consume/tests/test_post_state_rpc.py— 4 passeduv run fill -q tests/binary_tree/eip8297_partitioned_binary_tree/test_cache_invalidation.py --fork BinaryTree --clean -n 0— 2 passedgit diff --check— passedBase
projects/binary-trieat09d2088cf9f338e660cb04f948653baf544b7ba6.