mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Bump all spec tags to v0.12.1 (#1275)
This commit is contained in:
@@ -88,9 +88,9 @@ pub enum ChainSegmentResult {
|
||||
},
|
||||
}
|
||||
|
||||
/// The accepted clock drift for nodes gossiping blocks and attestations (spec v0.11.0). See:
|
||||
/// The accepted clock drift for nodes gossiping blocks and attestations. See:
|
||||
///
|
||||
/// https://github.com/ethereum/eth2.0-specs/blob/v0.11.0/specs/phase0/p2p-interface.md#configuration
|
||||
/// https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/p2p-interface.md#configuration
|
||||
pub const MAXIMUM_GOSSIP_CLOCK_DISPARITY: Duration = Duration::from_millis(500);
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
|
||||
@@ -232,7 +232,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following two tests ensure:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* aggregate.data.slot is within the last ATTESTATION_PROPAGATION_SLOT_RANGE slots (with a
|
||||
* MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance) -- i.e. aggregate.data.slot +
|
||||
@@ -277,7 +277,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block being voted for (aggregate.data.beacon_block_root) passes validation.
|
||||
*/
|
||||
@@ -299,7 +299,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The attestation has participants.
|
||||
*/
|
||||
@@ -320,7 +320,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* This test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The aggregator signature, signed_aggregate_and_proof.signature, is valid.
|
||||
*/
|
||||
@@ -340,7 +340,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The aggregate_and_proof.selection_proof is a valid signature of the aggregate.data.slot by
|
||||
* the validator with index aggregate_and_proof.aggregator_index.
|
||||
@@ -387,7 +387,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The signature of aggregate is valid.
|
||||
*/
|
||||
@@ -421,7 +421,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The aggregator's validator index is within the committee -- i.e.
|
||||
* aggregate_and_proof.aggregator_index in get_beacon_committee(state, aggregate.data.slot,
|
||||
@@ -450,7 +450,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* aggregate_and_proof.selection_proof selects the validator as an aggregator for the slot --
|
||||
* i.e. is_aggregator(state, aggregate.data.slot, aggregate.data.index,
|
||||
@@ -491,7 +491,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The valid aggregate attestation defined by hash_tree_root(aggregate) has not already been
|
||||
* seen (via aggregate gossip, within a block, or through the creation of an equivalent
|
||||
@@ -508,7 +508,7 @@ fn aggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures:
|
||||
*
|
||||
* Spec v0.12.0
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The aggregate is the first valid aggregate received for the aggregator with index
|
||||
* aggregate_and_proof.aggregator_index for the epoch aggregate.data.target.epoch.
|
||||
@@ -605,7 +605,7 @@ fn unaggregated_gossip_verification() {
|
||||
/*
|
||||
* The following two tests ensure:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* attestation.data.slot is within the last ATTESTATION_PROPAGATION_SLOT_RANGE slots (within a
|
||||
* MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance) -- i.e. attestation.data.slot +
|
||||
@@ -654,7 +654,7 @@ fn unaggregated_gossip_verification() {
|
||||
/*
|
||||
* The following two tests ensure:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The attestation is unaggregated -- that is, it has exactly one participating validator
|
||||
* (len([bit for bit in attestation.aggregation_bits if bit == 0b1]) == 1).
|
||||
@@ -694,7 +694,7 @@ fn unaggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block being voted for (attestation.data.beacon_block_root) passes validation.
|
||||
*/
|
||||
@@ -717,7 +717,7 @@ fn unaggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The signature of attestation is valid.
|
||||
*/
|
||||
@@ -748,7 +748,7 @@ fn unaggregated_gossip_verification() {
|
||||
/*
|
||||
* The following test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
*
|
||||
* There has been no other valid attestation seen on an attestation subnet that has an
|
||||
|
||||
@@ -558,7 +558,7 @@ fn block_gossip_verification() {
|
||||
/*
|
||||
* This test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block is not from a future slot (with a MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance) --
|
||||
* i.e. validate that signed_beacon_block.message.slot <= current_slot (a client MAY queue
|
||||
@@ -583,7 +583,7 @@ fn block_gossip_verification() {
|
||||
/*
|
||||
* This test ensure that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block is from a slot greater than the latest finalized slot -- i.e. validate that
|
||||
* signed_beacon_block.message.slot >
|
||||
@@ -616,7 +616,7 @@ fn block_gossip_verification() {
|
||||
/*
|
||||
* This test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The proposer signature, signed_beacon_block.signature, is valid with respect to the
|
||||
* proposer_index pubkey.
|
||||
@@ -635,7 +635,7 @@ fn block_gossip_verification() {
|
||||
/*
|
||||
* This test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block is proposed by the expected proposer_index for the block's slot in the context of
|
||||
* the current shuffling (defined by parent_root/slot). If the proposer_index cannot
|
||||
@@ -689,7 +689,7 @@ fn block_gossip_verification() {
|
||||
/*
|
||||
* This test ensures that:
|
||||
*
|
||||
* Spec v0.11.2
|
||||
* Spec v0.12.1
|
||||
*
|
||||
* The block is the first block with valid signature received for the proposer for the slot,
|
||||
* signed_beacon_block.message.slot.
|
||||
|
||||
@@ -11,7 +11,7 @@ use types::*;
|
||||
///
|
||||
/// Utilises lazy-loading from separate storage for its vector fields.
|
||||
///
|
||||
/// Spec v0.11.1
|
||||
/// Spec v0.12.1
|
||||
#[derive(Debug, PartialEq, Clone, Encode, Decode)]
|
||||
pub struct PartialBeaconState<T>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user