Skip to content

Commit 612d148

Browse files
authored
Merge pull request #3526 from ethereum/validity-note
add note about not invalidating valid and available blocks
2 parents 1e552f1 + ce387d6 commit 612d148

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

specs/deneb/fork-choice.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Initially, verification requires every verifying actor to retrieve all matching
4747

4848
The block MUST NOT be considered valid until all valid `Blob`s have been downloaded. Blocks that have been previously validated as available SHOULD be considered available even if the associated `Blob`s have subsequently been pruned.
4949

50+
*Note*: Extraneous or invalid Blobs (in addition to KZG expected/referenced valid blobs) received on the p2p network MUST NOT invalidate a block that is otherwise valid and available.
51+
5052
```python
5153
def is_data_available(beacon_block_root: Root, blob_kzg_commitments: Sequence[KZGCommitment]) -> bool:
5254
# `retrieve_blobs_and_proofs` is implementation and context dependent
@@ -91,6 +93,8 @@ def on_block(store: Store, signed_block: SignedBeaconBlock) -> None:
9193
# [New in Deneb:EIP4844]
9294
# Check if blob data is available
9395
# If not, this block MAY be queued and subsequently considered when blob data becomes available
96+
# *Note*: Extraneous or invalid Blobs (in addition to the expected/referenced valid blobs)
97+
# received on the p2p network MUST NOT invalidate a block that is otherwise valid and available
9498
assert is_data_available(hash_tree_root(block), block.body.blob_kzg_commitments)
9599

96100
# Check the block is valid and compute the post-state

0 commit comments

Comments
 (0)