mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-22 08:29:23 +00:00
Fix ToC and test
This commit is contained in:
parent
9f4ae4c6ee
commit
e2d0a4fa9a
@ -23,10 +23,12 @@
|
|||||||
- [`compute_proof_from_blobs`](#compute_proof_from_blobs)
|
- [`compute_proof_from_blobs`](#compute_proof_from_blobs)
|
||||||
- [`get_blobs_and_kzg_commitments`](#get_blobs_and_kzg_commitments)
|
- [`get_blobs_and_kzg_commitments`](#get_blobs_and_kzg_commitments)
|
||||||
- [Beacon chain responsibilities](#beacon-chain-responsibilities)
|
- [Beacon chain responsibilities](#beacon-chain-responsibilities)
|
||||||
- [Block proposal](#block-proposal)
|
- [Block and sidecar proposal](#block-and-sidecar-proposal)
|
||||||
- [Constructing the `BeaconBlockBody`](#constructing-the-beaconblockbody)
|
- [Constructing the `BeaconBlockBody`](#constructing-the-beaconblockbody)
|
||||||
- [Blob KZG commitments](#blob-kzg-commitments)
|
- [Blob KZG commitments](#blob-kzg-commitments)
|
||||||
- [Beacon Block publishing time](#beacon-block-publishing-time)
|
- [Constructing the `SignedBeaconBlockAndBlobsSidecar`](#constructing-the-signedbeaconblockandblobssidecar)
|
||||||
|
- [Block](#block)
|
||||||
|
- [Sidecar](#sidecar)
|
||||||
|
|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
<!-- /TOC -->
|
<!-- /TOC -->
|
||||||
|
@ -12,7 +12,6 @@ from eth2spec.test.helpers.sharding import (
|
|||||||
get_sample_opaque_tx,
|
get_sample_opaque_tx,
|
||||||
get_sample_blob,
|
get_sample_blob,
|
||||||
)
|
)
|
||||||
from eth2spec.test.helpers.keys import privkeys
|
|
||||||
|
|
||||||
|
|
||||||
@with_eip4844_and_later
|
@with_eip4844_and_later
|
||||||
@ -38,8 +37,6 @@ def _run_validate_blobs_sidecar_test(spec, state, blob_count):
|
|||||||
state_transition_and_sign_block(spec, state, block)
|
state_transition_and_sign_block(spec, state, block)
|
||||||
|
|
||||||
blobs_sidecar = spec.get_blobs_sidecar(block, blobs)
|
blobs_sidecar = spec.get_blobs_sidecar(block, blobs)
|
||||||
privkey = privkeys[1]
|
|
||||||
spec.get_signed_blobs_sidecar(state, blobs_sidecar, privkey)
|
|
||||||
expected_commitments = [spec.blob_to_kzg_commitment(blobs[i]) for i in range(blob_count)]
|
expected_commitments = [spec.blob_to_kzg_commitment(blobs[i]) for i in range(blob_count)]
|
||||||
spec.validate_blobs_sidecar(block.slot, block.hash_tree_root(), expected_commitments, blobs_sidecar)
|
spec.validate_blobs_sidecar(block.slot, block.hash_tree_root(), expected_commitments, blobs_sidecar)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user