Skip to content

Commit 27f7d59

Browse files
authored
Merge branch 'unstable' into column-syncer
2 parents 1ed3b35 + 367f456 commit 27f7d59

31 files changed

+101
-103
lines changed

beacon_chain/consensus_object_pools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This folder holds the various consensus object pools needed for a blockchain cli
44

55
Object in those pools have passed the "gossip validation" filter according
66
to specs:
7-
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/p2p-interface.md#beacon_block
7+
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#beacon_block
88
- aggregate attestations: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
99
- unaggregated attestation: https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/p2p-interface.md#beacon_attestation_subnet_id
1010
- voluntary exits: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#voluntary_exit

beacon_chain/consensus_object_pools/spec_cache.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ logScope: topics = "spec_cache"
2727
func count_active_validators*(shufflingRef: ShufflingRef): uint64 =
2828
shufflingRef.shuffled_active_validator_indices.lenu64
2929

30-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#get_committee_count_per_slot
30+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/beacon-chain.md#get_committee_count_per_slot
3131
func get_committee_count_per_slot*(shufflingRef: ShufflingRef): uint64 =
3232
get_committee_count_per_slot(count_active_validators(shufflingRef))
3333

@@ -66,7 +66,7 @@ func get_beacon_committee*(
6666
committees_per_slot * SLOTS_PER_EPOCH
6767
)
6868

69-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.6/specs/phase0/beacon-chain.md#get_beacon_committee
69+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/beacon-chain.md#get_beacon_committee
7070
func get_beacon_committee_len*(
7171
shufflingRef: ShufflingRef, slot: Slot, committee_index: CommitteeIndex): uint64 =
7272
## Return the number of members in the beacon committee at ``slot`` for ``index``.

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func find_head(
358358

359359
return ok(new_head)
360360

361-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.1/specs/phase0/fork-choice.md#get_head
361+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/fork-choice.md#get_head
362362
proc get_head*(self: var ForkChoice,
363363
dag: ChainDAGRef,
364364
wallTime: BeaconTime): FcResult[Eth2Digest] =

beacon_chain/gossip_processing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Gossip validation is different from consensus verification in particular for blo
1313
- Attestations (aggregated): https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
1414
- Attestations (unaggregated): https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.4/specs/phase0/p2p-interface.md#attestation-subnets
1515
- Voluntary exits: https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/phase0/p2p-interface.md#voluntary_exit
16-
- Proposer slashings: https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.4/specs/phase0/p2p-interface.md#proposer_slashing
17-
- Attester slashing: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#attester_slashing
16+
- Proposer slashings: https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#proposer_slashing
17+
- Attester slashing: https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#attester_slashing
1818

1919
There are multiple consumers of validated consensus objects:
2020
- a `ValidationResult.Accept` output triggers rebroadcasting in libp2p

beacon_chain/gossip_processing/gossip_validation.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func check_propagation_slot_range(
105105
pastSlot.slot:
106106
return errIgnore("Attestation slot in the past")
107107
else:
108-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.2/specs/deneb/p2p-interface.md#beacon_attestation_subnet_id
108+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/deneb/p2p-interface.md#beacon_attestation_subnet_id
109109
# "[IGNORE] the epoch of attestation.data.slot is either the current or
110110
# previous epoch (with a MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance) -- i.e.
111111
# compute_epoch_at_slot(attestation.data.slot) in
@@ -304,7 +304,7 @@ template validateBeaconBlockBellatrix(
304304
_: BlockRef): untyped =
305305
discard
306306

307-
# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/bellatrix/p2p-interface.md#beacon_block
307+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/bellatrix/p2p-interface.md#beacon_block
308308
template validateBeaconBlockBellatrix(
309309
signed_beacon_block:
310310
bellatrix.SignedBeaconBlock | capella.SignedBeaconBlock |

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ typedef struct ETHBeaconState ETHBeaconState;
150150
* @return `NULL` - If the given `sszBytes` is malformed.
151151
*
152152
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/beacon-chain.md#beaconstate
153-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.4/specs/altair/beacon-chain.md#beaconstate
153+
* @see https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/altair/beacon-chain.md#beaconstate
154154
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#beaconstate
155155
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/beacon-chain.md#beaconstate
156156
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/configs/README.md
@@ -326,7 +326,7 @@ typedef struct ETHLightClientStore ETHLightClientStore;
326326
* @see https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Beacon/getLightClientBootstrap
327327
* @see https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Events/eventstream
328328
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/altair/light-client/light-client.md
329-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.4/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
329+
* @see https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
330330
*/
331331
ETH_RESULT_USE_CHECK
332332
ETHLightClientStore *_Nullable ETHLightClientStoreCreateFromBootstrap(
@@ -634,7 +634,7 @@ const ETHLightClientHeader *ETHLightClientStoreGetOptimisticHeader(
634634
*
635635
* @return Light client store safety threshold.
636636
*
637-
* @see https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/altair/light-client/sync-protocol.md#get_safety_threshold
637+
* @see https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/altair/light-client/sync-protocol.md#get_safety_threshold
638638
*/
639639
ETH_RESULT_USE_CHECK
640640
int ETHLightClientStoreGetSafetyThreshold(const ETHLightClientStore *store);
@@ -775,7 +775,7 @@ const ETHRoot *ETHBeaconBlockHeaderGetBodyRoot(const ETHBeaconBlockHeader *beaco
775775
*
776776
* @return Pointer to a copy of the given header's execution block hash.
777777
*
778-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/deneb/beacon-chain.md#executionpayloadheader
778+
* @see https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/deneb/beacon-chain.md#executionpayloadheader
779779
*/
780780
ETH_RESULT_USE_CHECK
781781
ETHRoot *ETHLightClientHeaderCopyExecutionHash(

beacon_chain/libnimbus_lc/libnimbus_lc.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ proc ETHBeaconStateCreateFromSsz(
142142
##
143143
## See:
144144
## * https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#beaconstate
145-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.4/specs/altair/beacon-chain.md#beaconstate
145+
## * https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/altair/beacon-chain.md#beaconstate
146146
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#beaconstate
147147
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/capella/beacon-chain.md#beaconstate
148148
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0/configs/README.md
@@ -269,7 +269,7 @@ proc ETHBeaconClockGetSlot(beaconClock: ptr BeaconClock): cint {.exported.} =
269269
## * `0` - If genesis is still pending.
270270
##
271271
## See:
272-
## * https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.6/specs/phase0/beacon-chain.md#custom-types
272+
## * https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/beacon-chain.md#custom-types
273273
beaconClock[].now().slotOrZero().cint
274274

275275
const lcDataFork = LightClientDataFork.high
@@ -735,7 +735,7 @@ func ETHLightClientStoreGetFinalizedHeader(
735735
## * Latest finalized header.
736736
##
737737
## See:
738-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
738+
## * https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
739739
addr store[].finalized_header
740740

741741
func ETHLightClientStoreIsNextSyncCommitteeKnown(
@@ -755,7 +755,7 @@ func ETHLightClientStoreIsNextSyncCommitteeKnown(
755755
##
756756
## See:
757757
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
758-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/altair/light-client/light-client.md
758+
## * https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/altair/light-client/light-client.md
759759
store[].is_next_sync_committee_known
760760

761761
func ETHLightClientStoreGetOptimisticHeader(

beacon_chain/networking/eth2_network.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ proc broadcast(node: Eth2Node, topic: string, msg: auto):
26372637
proc subscribeAttestationSubnets*(
26382638
node: Eth2Node, subnets: AttnetBits, forkDigest: ForkDigest,
26392639
topicParams: TopicParams) =
2640-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/p2p-interface.md#attestations-and-aggregation
2640+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#attestations-and-aggregation
26412641
for subnet_id, enabled in subnets:
26422642
if enabled:
26432643
node.subscribe(getAttestationTopic(

beacon_chain/nimbus_beacon_node.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ proc installMessageValidators(node: BeaconNode) =
20782078
checkSignature = true, checkValidator = false)))
20792079

20802080
# beacon_aggregate_and_proof
2081-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
2081+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
20822082
when consensusFork >= ConsensusFork.Electra:
20832083
node.network.addAsyncValidator(
20842084
getAggregateAndProofsTopic(digest), proc (

beacon_chain/spec/beacon_time.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const
150150
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/p2p-interface.md#sync-committee
151151
lightClientFinalityUpdateSlotOffset* = TimeDiff(nanoseconds:
152152
NANOSECONDS_PER_SLOT.int64 div INTERVALS_PER_SLOT)
153-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/p2p-interface.md#sync-committee
153+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/altair/light-client/p2p-interface.md#sync-committee
154154
lightClientOptimisticUpdateSlotOffset* = TimeDiff(nanoseconds:
155155
NANOSECONDS_PER_SLOT.int64 div INTERVALS_PER_SLOT)
156156

@@ -184,7 +184,7 @@ func slotOrZero*(time: BeaconTime): Slot =
184184
if exSlot.afterGenesis: exSlot.slot
185185
else: Slot(0)
186186

187-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.6/specs/phase0/beacon-chain.md#compute_epoch_at_slot
187+
# https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/beacon-chain.md#compute_epoch_at_slot
188188
func epoch*(slot: Slot): Epoch = # aka compute_epoch_at_slot
189189
## Return the epoch number at ``slot``.
190190
if slot == FAR_FUTURE_SLOT: FAR_FUTURE_EPOCH

0 commit comments

Comments
 (0)