Skip to content

Commit 27c1bdd

Browse files
tersecTomi-3-0
authored andcommitted
automated consensus spec URL updating to v1.5.0-beta.0 (status-im#6833)
1 parent 1835728 commit 27c1bdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+157
-157
lines changed

beacon_chain/beacon_clock.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# beacon_chain
2-
# Copyright (c) 2018-2024 Status Research & Development GmbH
2+
# Copyright (c) 2018-2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -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.10/specs/phase0/fork-choice.md#fork-choice
30+
## https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# beacon_chain
2-
# Copyright (c) 2018-2024 Status Research & Development GmbH
2+
# Copyright (c) 2018-2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -99,7 +99,7 @@ iterator get_attesting_indices*(shufflingRef: ShufflingRef,
9999
if bits[index_in_committee]:
100100
yield validator_index
101101

102-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/beacon-chain.md#modified-get_attesting_indices
102+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/electra/beacon-chain.md#modified-get_attesting_indices
103103
iterator get_attesting_indices*(
104104
shufflingRef: ShufflingRef, slot: Slot,
105105
committee_bits: AttestationCommitteeBits,
@@ -293,7 +293,7 @@ func makeAttestationData*(
293293

294294
doAssert current_epoch == epochRef.epoch
295295

296-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/validator.md#attestation-data
296+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/validator.md#attestation-data
297297
AttestationData(
298298
slot: slot,
299299
index: committee_index.asUInt64,

beacon_chain/el/el_manager.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ proc forkchoiceUpdated*(
11671167
# block hash provided by this event is stubbed with
11681168
# `0x0000000000000000000000000000000000000000000000000000000000000000`."
11691169
# and
1170-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/bellatrix/validator.md#executionpayload
1170+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/bellatrix/validator.md#executionpayload
11711171
# notes "`finalized_block_hash` is the hash of the latest finalized execution
11721172
# payload (`Hash32()` if none yet finalized)"
11731173

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.10/specs/phase0/validator.md#get_eth1_data
85+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/phase0/validator.md#get_eth1_data
89+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/phase0/validator.md#get_eth1_data
97+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# beacon_chain
2-
# Copyright (c) 2018-2024 Status Research & Development GmbH
2+
# Copyright (c) 2018-2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
66
# at your option. This file may not be copied, modified, or distributed except according to those terms.
77

88
{.push raises: [].}
99

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

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

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# beacon_chain
2-
# Copyright (c) 2018-2024 Status Research & Development GmbH
2+
# Copyright (c) 2018-2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -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.10/specs/phase0/fork-choice.md#update_checkpoints
112+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/fork_choice/safe-block.md#get_safe_beacon_block_root
376+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ typedef struct ETHConsensusConfig ETHConsensusConfig;
9494
* based on the given `config.yaml` file content - If successful.
9595
* @return `NULL` - If the given `config.yaml` is malformed or incompatible.
9696
*
97-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/configs/README.md
9898
*/
9999
ETH_RESULT_USE_CHECK
100100
ETHConsensusConfig *_Nullable ETHConsensusConfigCreateFromYaml(const char *configFileContent);
@@ -149,10 +149,10 @@ typedef struct ETHBeaconState ETHBeaconState;
149149
* representation - If successful.
150150
* @return `NULL` - If the given `sszBytes` is malformed.
151151
*
152-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#beaconstate
153-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/beacon-chain.md#beaconstate
152+
* @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.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
155-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/beacon-chain.md#beaconstate
155+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/beacon-chain.md#beaconstate
156156
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/configs/README.md
157157
*/
158158
ETH_RESULT_USE_CHECK
@@ -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.10/specs/altair/light-client/light-client.md
328+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
582+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/altair/light-client/light-client.md
601+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
617+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
618618
*/
619619
ETH_RESULT_USE_CHECK
620620
const ETHLightClientHeader *ETHLightClientStoreGetOptimisticHeader(
@@ -695,7 +695,7 @@ typedef struct ETHBeaconBlockHeader ETHBeaconBlockHeader;
695695
*
696696
* @return Beacon block header.
697697
*
698-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#beaconblockheader
698+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/beacon-chain.md#beaconblockheader
699699
*/
700700
ETH_RESULT_USE_CHECK
701701
const ETHBeaconBlockHeader *ETHLightClientHeaderGetBeacon(

beacon_chain/libnimbus_lc/libnimbus_lc.nim

Lines changed: 6 additions & 6 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-alpha.10/specs/altair/beacon-chain.md#beaconstate
145+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.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-alpha.9/configs/README.md
@@ -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.10/specs/altair/light-client/light-client.md
331+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/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.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
738+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
739739
addr store[].finalized_header
740740

741741
func ETHLightClientStoreIsNextSyncCommitteeKnown(
@@ -754,8 +754,8 @@ func ETHLightClientStoreIsNextSyncCommitteeKnown(
754754
## * Whether or not the next sync committee is currently known.
755755
##
756756
## See:
757-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
758-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/light-client/light-client.md
757+
## * 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
759759
store[].is_next_sync_committee_known
760760

761761
func ETHLightClientStoreGetOptimisticHeader(
@@ -774,7 +774,7 @@ func ETHLightClientStoreGetOptimisticHeader(
774774
## * Latest optimistic header.
775775
##
776776
## See:
777-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
777+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
778778
addr store[].optimistic_header
779779

780780
func ETHLightClientStoreGetSafetyThreshold(

beacon_chain/networking/eth2_network.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ proc getPersistentNetKeys*(
22672267
func gossipId(
22682268
data: openArray[byte], phase0Prefix, topic: string): seq[byte] =
22692269
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#topics-and-messages
2270-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/p2p-interface.md#topics-and-messages
2270+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/altair/p2p-interface.md#topics-and-messages
22712271
const MESSAGE_DOMAIN_VALID_SNAPPY = [0x01'u8, 0x00, 0x00, 0x00]
22722272
let messageDigest = withEth2Hash:
22732273
h.update(MESSAGE_DOMAIN_VALID_SNAPPY)

beacon_chain/nimbus_beacon_node.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ proc installMessageValidators(node: BeaconNode) =
20652065
MsgSource.gossip, msg)))
20662066

20672067
when consensusFork >= ConsensusFork.Capella:
2068-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/p2p-interface.md#bls_to_execution_change
2068+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/capella/p2p-interface.md#bls_to_execution_change
20692069
node.network.addAsyncValidator(
20702070
getBlsToExecutionChangeTopic(digest), proc (
20712071
msg: SignedBLSToExecutionChange

0 commit comments

Comments
 (0)