change usage of MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS
This commit is contained in:
parent
e2e03b16a1
commit
3259922a9e
|
@ -47,7 +47,7 @@ The block MUST NOT be considered valid until all valid `Blob`s have been downloa
|
||||||
def is_data_available(beacon_block_root: Root, blob_kzg_commitments: Sequence[KZGCommitment]) -> bool:
|
def is_data_available(beacon_block_root: Root, blob_kzg_commitments: Sequence[KZGCommitment]) -> bool:
|
||||||
# `retrieve_blobs_and_proofs` is implementation and context dependent
|
# `retrieve_blobs_and_proofs` is implementation and context dependent
|
||||||
# It returns all the blobs for the given block root, and raises an exception if not available
|
# It returns all the blobs for the given block root, and raises an exception if not available
|
||||||
# Note: the p2p network does not guarantee sidecar retrieval outside of `MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS`
|
# Note: the p2p network does not guarantee sidecar retrieval outside of `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS`
|
||||||
blobs, proofs = retrieve_blobs_and_proofs(beacon_block_root)
|
blobs, proofs = retrieve_blobs_and_proofs(beacon_block_root)
|
||||||
|
|
||||||
# For testing, `retrieve_blobs_and_proofs` returns ("TEST", "TEST").
|
# For testing, `retrieve_blobs_and_proofs` returns ("TEST", "TEST").
|
||||||
|
|
|
@ -118,7 +118,7 @@ def get_blob_sidecar_signature(state: BeaconState,
|
||||||
|
|
||||||
After publishing the peers on the network may request the sidecar through sync-requests, or a local user may be interested.
|
After publishing the peers on the network may request the sidecar through sync-requests, or a local user may be interested.
|
||||||
|
|
||||||
The validator MUST hold on to sidecars for `MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS` epochs and serve when capable,
|
The validator MUST hold on to sidecars for `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` epochs and serve when capable,
|
||||||
to ensure the data-availability of these blobs throughout the network.
|
to ensure the data-availability of these blobs throughout the network.
|
||||||
|
|
||||||
After `MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS` nodes MAY prune the sidecars and/or stop serving them.
|
After `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` nodes MAY prune the sidecars and/or stop serving them.
|
||||||
|
|
Loading…
Reference in New Issue