Repository navigation
feat(test-fill, tests): cover a stale sync target and simplify a fee-cap test - #62
Merged
Conversation
A block first rejected for its delivered list and then accepted below a later leaf is never a sync-payload leaf, so the rejected copy's target, built on the block's parent state, stays in syncPayloads. The test expects only the final block's target and fails until that is fixed.
Each branch now states only its fee cap, expected error and post state; building the transaction, the premise check and the funding run once after it. The filled fixtures are unchanged.
Open
2 tasks done
Owner
|
lovely, ty! |
fselmo
pushed a commit
that referenced
this pull request
Dec 3, 2026
…cap test (#62) * feat(test-fill): cover a redelivered block accepted below a later leaf A block first rejected for its delivered list and then accepted below a later leaf is never a sync-payload leaf, so the rejected copy's target, built on the block's parent state, stays in syncPayloads. The test expects only the final block's target and fails until that is fixed. * refactor(tests): separate the cases in test_fee_cap_at_balance_limit Each branch now states only its fee cap, expected error and post state; building the transaction, the premise check and the funding run once after it. The filled fixtures are unchanged.
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
Two follow-ups for ethereum#3875.
record_sync_payload_leaf, so an accepted copy replaces the rejected one only if it is the final block. With[bad X, good X, good Y], good X never gets there, and bad X's target, built on X's parent state, stays insyncPayloads.test_redelivered_block_below_a_later_leaf_has_no_targetexpects only Y's target and fails on this branch on purpose (assert 2 == 1). Locally, dropping the rejected copy's candidate when a non-leaf copy is accepted makes it pass; the fix is left out so you can choose how to handle it.test_fee_cap_at_balance_limitreadability. Each branch now states only its fee cap, expected error and post state; building the transaction, the premise check and the funding run once after it. The filled fixtures are byte-identical before and after (compared with_infostripped).Only
ruff format --checkandruff checkwere run on the touched files;just staticwas not run.Related Issues or PRs
ethereum#3875
Checklist
just static<type>(<area>): <description>, where<type>and<area>come from an appropriateC-<type>, respectivelyA-<area>, label. The title should match the target squash commit message.Cute Animal Picture