Skip to content

Commit 232cf2a

Browse files
authored
automated consensus spec URL updating to v1.5.0-alpha.10 (#6762)
1 parent 7cb0a61 commit 232cf2a

38 files changed

+82
-82
lines changed

beacon_chain/beacon_clock.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type
2727
## which blocks are valid - in particular, blocks are not valid if they
2828
## come from the future as seen from the local clock.
2929
##
30-
## https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/fork-choice.md#fork-choice
30+
## https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/fork-choice.md#fork-choice
3131
##
3232
# TODO consider NTP and network-adjusted timestamps as outlined here:
3333
# https://ethresear.ch/t/network-adjusted-timestamps/4187

beacon_chain/consensus_object_pools/spec_cache.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func makeAttestationData*(
283283

284284
doAssert current_epoch == epochRef.epoch
285285

286-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/validator.md#attestation-data
286+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/validator.md#attestation-data
287287
AttestationData(
288288
slot: slot,
289289
index: committee_index.asUInt64,

beacon_chain/consensus_object_pools/sync_committee_msg_pool.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ proc produceSyncAggregate*(
364364

365365
proc isEpochLeadTime*(
366366
pool: SyncCommitteeMsgPool, epochsToSyncPeriod: uint64): bool =
367-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/validator.md#sync-committee-subnet-stability
367+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/validator.md#sync-committee-subnet-stability
368368
# This ensures a uniform distribution without requiring additional state:
369369
# (1/4) = 1/4, 4 slots out
370370
# (3/4) * (1/3) = 1/4, 3 slots out

beacon_chain/el/el_manager.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ proc forkchoiceUpdated*(
11301130
# block hash provided by this event is stubbed with
11311131
# `0x0000000000000000000000000000000000000000000000000000000000000000`."
11321132
# and
1133-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/bellatrix/validator.md#executionpayload
1133+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/bellatrix/validator.md#executionpayload
11341134
# notes "`finalized_block_hash` is the hash of the latest finalized execution
11351135
# payload (`Hash32()` if none yet finalized)"
11361136

beacon_chain/el/eth1_chain.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ type
8282
deposits*: seq[Deposit]
8383
hasMissingDeposits*: bool
8484

85-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/validator.md#get_eth1_data
85+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/validator.md#get_eth1_data
8686
func compute_time_at_slot(genesis_time: uint64, slot: Slot): uint64 =
8787
genesis_time + slot * SECONDS_PER_SLOT
8888

89-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/validator.md#get_eth1_data
89+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/validator.md#get_eth1_data
9090
func voting_period_start_time(state: ForkedHashedBeaconState): uint64 =
9191
let eth1_voting_period_start_slot =
9292
getStateField(state, slot) - getStateField(state, slot) mod
9393
SLOTS_PER_ETH1_VOTING_PERIOD.uint64
9494
compute_time_at_slot(
9595
getStateField(state, genesis_time), eth1_voting_period_start_slot)
9696

97-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/validator.md#get_eth1_data
97+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/validator.md#get_eth1_data
9898
func is_candidate_block(cfg: RuntimeConfig,
9999
blk: Eth1Block,
100100
period_start: uint64): bool =

beacon_chain/el/merkle_minimal.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
{.push raises: [].}
99

10-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

1212
# Merkle tree helpers
1313
# ---------------------------------------------------------------

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ proc update_justified(
109109
self.update_justified(dag, blck, justified.epoch)
110110
ok()
111111

112-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/fork-choice.md#update_checkpoints
112+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/fork-choice.md#update_checkpoints
113113
proc update_checkpoints(
114114
self: var Checkpoints, dag: ChainDAGRef,
115115
checkpoints: FinalityCheckpoints): FcResult[void] =
@@ -373,7 +373,7 @@ proc get_head*(self: var ForkChoice,
373373
self.checkpoints.justified.balances,
374374
self.checkpoints.proposer_boost_root)
375375

376-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/fork_choice/safe-block.md#get_safe_beacon_block_root
376+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/fork_choice/safe-block.md#get_safe_beacon_block_root
377377
func get_safe_beacon_block_root*(self: ForkChoice): Eth2Digest =
378378
# Use most recent justified block as a stopgap
379379
self.checkpoints.justified.checkpoint.root

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ typedef struct ETHLightClientStore ETHLightClientStore;
325325
*
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
328-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/light-client.md
328+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/light-client/light-client.md
329329
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
330330
*/
331331
ETH_RESULT_USE_CHECK
@@ -579,7 +579,7 @@ typedef struct ETHLightClientHeader ETHLightClientHeader;
579579
*
580580
* @return Latest finalized header.
581581
*
582-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
582+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
583583
*/
584584
ETH_RESULT_USE_CHECK
585585
const ETHLightClientHeader *ETHLightClientStoreGetFinalizedHeader(
@@ -598,7 +598,7 @@ const ETHLightClientHeader *ETHLightClientStoreGetFinalizedHeader(
598598
* @return Whether or not the next sync committee is currently known.
599599
*
600600
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
601-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/light-client.md
601+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/light-client/light-client.md
602602
*/
603603
ETH_RESULT_USE_CHECK
604604
bool ETHLightClientStoreIsNextSyncCommitteeKnown(const ETHLightClientStore *store);
@@ -614,7 +614,7 @@ bool ETHLightClientStoreIsNextSyncCommitteeKnown(const ETHLightClientStore *stor
614614
*
615615
* @return Latest optimistic header.
616616
*
617-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
617+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
618618
*/
619619
ETH_RESULT_USE_CHECK
620620
const ETHLightClientHeader *ETHLightClientStoreGetOptimisticHeader(

beacon_chain/libnimbus_lc/libnimbus_lc.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ proc ETHLightClientStoreCreateFromBootstrap(
328328
## See:
329329
## * https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Beacon/getLightClientBootstrap
330330
## * https://ethereum.github.io/beacon-APIs/?urls.primaryName=v2.4.1#/Events/eventstream
331-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/light-client.md
331+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/light-client/light-client.md
332332
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/phase0/weak-subjectivity.md#weak-subjectivity-period
333333
let
334334
mediaType = MediaType.init($mediaType)
@@ -735,7 +735,7 @@ func ETHLightClientStoreGetFinalizedHeader(
735735
## * Latest finalized header.
736736
##
737737
## See:
738-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
738+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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-alpha.3/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
758-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/light-client/light-client.md
758+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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
@@ -2630,7 +2630,7 @@ proc loadCscnetMetadataAndEnr*(node: Eth2Node, cscnets: CscCount) =
26302630
debug "Updated ENR csc", cscnets
26312631

26322632
proc updateSyncnetsMetadata*(node: Eth2Node, syncnets: SyncnetBits) =
2633-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/validator.md#sync-committee-subnet-stability
2633+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/validator.md#sync-committee-subnet-stability
26342634
if node.metadata.syncnets == syncnets:
26352635
return
26362636

0 commit comments

Comments
 (0)