Skip to content

Commit bb22476

Browse files
authored
some manual consensus spec URL updates to v1.5.0-alpha.10 (#6827)
* some manual consensus spec URL updates to v1.5.0-alpha.10 * copyright year linting
1 parent 39c984b commit bb22476

29 files changed

+112
-112
lines changed

beacon_chain/el/eth1_chain.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).
@@ -333,7 +333,7 @@ proc getBlockProposalData*(chain: var Eth1Chain,
333333
totalDepositsInNewBlock =
334334
withState(state):
335335
when consensusFork >= ConsensusFork.Electra:
336-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/electra/validator.md#deposits
336+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/validator.md#deposits
337337
let eth1_deposit_index_limit = min(
338338
forkyState.data.eth1_data.deposit_count,
339339
forkyState.data.deposit_requests_start_index)

beacon_chain/gossip_processing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gossip validation is different from consensus verification in particular for blo
1313
- Attestations (aggregated): https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
1414
- Attestations (unaggregated): https://github.com/ethereum/consensus-specs/blob/v1.4.0/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.4.0-beta.5/specs/phase0/p2p-interface.md#proposer_slashing
16+
- Proposer slashings: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#proposer_slashing
1717
- Attester slashing: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#attester_slashing
1818

1919
There are multiple consumers of validated consensus objects:

beacon_chain/gossip_processing/gossip_validation.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ proc validateBlsToExecutionChange*(
14131413

14141414
return ok()
14151415

1416-
# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/p2p-interface.md#attester_slashing
1416+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#attester_slashing
14171417
proc validateAttesterSlashing*(
14181418
pool: ValidatorChangePool,
14191419
attester_slashing: phase0.AttesterSlashing | electra.AttesterSlashing):
@@ -1445,7 +1445,7 @@ proc validateAttesterSlashing*(
14451445

14461446
ok()
14471447

1448-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/phase0/p2p-interface.md#proposer_slashing
1448+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#proposer_slashing
14491449
proc validateProposerSlashing*(
14501450
pool: ValidatorChangePool, proposer_slashing: ProposerSlashing):
14511451
Result[void, ValidationError] =

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* beacon_chain
3-
* Copyright (c) 2023-2024 Status Research & Development GmbH
3+
* Copyright (c) 2023-2025 Status Research & Development GmbH
44
* Licensed and distributed under either of
55
* * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
66
* * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -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.9/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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.4.0/specs/phase0/beacon-chain.md#beaconstate
153-
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/beacon-chain.md#beaconstate
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
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.3/specs/capella/beacon-chain.md#beaconstate
155+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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
@@ -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.8/specs/phase0/beacon-chain.md#beaconblockheader
698+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#beaconblockheader
699699
*/
700700
ETH_RESULT_USE_CHECK
701701
const ETHBeaconBlockHeader *ETHLightClientHeaderGetBeacon(
@@ -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.4.0/specs/deneb/beacon-chain.md#executionpayloadheader
778+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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
@@ -1,5 +1,5 @@
11
# beacon_chain
2-
# Copyright (c) 2023-2024 Status Research & Development GmbH
2+
# Copyright (c) 2023-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).
@@ -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.4.0/specs/altair/beacon-chain.md#beaconstate
145+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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
@@ -754,7 +754,7 @@ 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.3/specs/altair/light-client/sync-protocol.md#is_next_sync_committee_known
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
758758
## * 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

@@ -774,7 +774,7 @@ func ETHLightClientStoreGetOptimisticHeader(
774774
## * Latest optimistic header.
775775
##
776776
## See:
777-
## * https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/capella/light-client/sync-protocol.md#modified-lightclientheader
777+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/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: 6 additions & 6 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).
@@ -2266,8 +2266,8 @@ proc getPersistentNetKeys*(
22662266

22672267
func gossipId(
22682268
data: openArray[byte], phase0Prefix, topic: string): seq[byte] =
2269-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#topics-and-messages
2270-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/p2p-interface.md#topics-and-messages
2269+
# 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
22712271
const MESSAGE_DOMAIN_VALID_SNAPPY = [0x01'u8, 0x00, 0x00, 0x00]
22722272
let messageDigest = withEth2Hash:
22732273
h.update(MESSAGE_DOMAIN_VALID_SNAPPY)
@@ -2584,7 +2584,7 @@ proc broadcast(node: Eth2Node, topic: string, msg: auto):
25842584

25852585
proc subscribeAttestationSubnets*(
25862586
node: Eth2Node, subnets: AttnetBits, forkDigest: ForkDigest) =
2587-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#attestations-and-aggregation
2587+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#attestations-and-aggregation
25882588
# Nimbus won't score attestation subnets for now, we just rely on block and
25892589
# aggregate which are more stable and reliable
25902590

@@ -2595,7 +2595,7 @@ proc subscribeAttestationSubnets*(
25952595

25962596
proc unsubscribeAttestationSubnets*(
25972597
node: Eth2Node, subnets: AttnetBits, forkDigest: ForkDigest) =
2598-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/p2p-interface.md#attestations-and-aggregation
2598+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#attestations-and-aggregation
25992599
# Nimbus won't score attestation subnets for now; we just rely on block and
26002600
# aggregate which are more stable and reliable
26012601

@@ -2611,7 +2611,7 @@ proc updateStabilitySubnetMetadata*(node: Eth2Node, attnets: AttnetBits) =
26112611
node.metadata.seq_number += 1
26122612
node.metadata.attnets = attnets
26132613

2614-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#attestation-subnet-subscription
2614+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#attestation-subnet-subscription
26152615
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/p2p-interface.md#attestation-subnet-bitfield
26162616
let res = node.discovery.updateRecord({
26172617
enrAttestationSubnetsField: SSZ.encode(node.metadata.attnets)

beacon_chain/nimbus_beacon_node.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).
@@ -2031,7 +2031,7 @@ proc installMessageValidators(node: BeaconNode) =
20312031
MsgSource.gossip, proposerSlashing)))
20322032

20332033
# voluntary_exit
2034-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/p2p-interface.md#voluntary_exit
2034+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#voluntary_exit
20352035
node.network.addValidator(
20362036
getVoluntaryExitsTopic(digest), proc (
20372037
signedVoluntaryExit: SignedVoluntaryExit
@@ -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.9/specs/capella/p2p-interface.md#bls_to_execution_change
2068+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/p2p-interface.md#bls_to_execution_change
20692069
node.network.addAsyncValidator(
20702070
getBlsToExecutionChangeTopic(digest), proc (
20712071
msg: SignedBLSToExecutionChange

beacon_chain/spec/beacon_time.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).
@@ -196,7 +196,7 @@ func since_epoch_start*(slot: Slot): uint64 = # aka compute_slots_since_epoch_st
196196
template is_epoch*(slot: Slot): bool =
197197
slot.since_epoch_start == 0
198198

199-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/beacon-chain.md#compute_start_slot_at_epoch
199+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#compute_start_slot_at_epoch
200200
func start_slot*(epoch: Epoch): Slot = # aka compute_start_slot_at_epoch
201201
## Return the start slot of ``epoch``.
202202
const maxEpoch = Epoch(FAR_FUTURE_SLOT div SLOTS_PER_EPOCH)

beacon_chain/spec/beaconstate.nim

Lines changed: 12 additions & 12 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).
@@ -136,7 +136,7 @@ func compute_activation_exit_epoch*(epoch: Epoch): Epoch =
136136
## ``epoch`` take effect.
137137
epoch + 1 + MAX_SEED_LOOKAHEAD
138138

139-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/beacon-chain.md#get_validator_churn_limit
139+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#get_validator_churn_limit
140140
func get_validator_churn_limit*(
141141
cfg: RuntimeConfig, state: ForkyBeaconState, cache: var StateCache):
142142
uint64 =
@@ -247,7 +247,7 @@ func get_balance_churn_limit(
247247
)
248248
churn - churn mod EFFECTIVE_BALANCE_INCREMENT.Gwei
249249

250-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0/specs/electra/beacon-chain.md#new-get_activation_exit_churn_limit
250+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/beacon-chain.md#new-get_activation_exit_churn_limit
251251
func get_activation_exit_churn_limit*(
252252
cfg: RuntimeConfig, state: electra.BeaconState | fulu.BeaconState, cache: var StateCache):
253253
Gwei =
@@ -398,9 +398,9 @@ func get_proposer_reward(state: ForkyBeaconState, whistleblower_reward: Gwei): G
398398
else:
399399
{.fatal: "invalid BeaconState type".}
400400

401-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.7/specs/phase0/beacon-chain.md#slash_validator
401+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#slash_validator
402402
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#modified-slash_validator
403-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
403+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/bellatrix/beacon-chain.md#modified-slash_validator
404404
proc slash_validator*(
405405
cfg: RuntimeConfig, state: var ForkyBeaconState,
406406
slashed_index: ValidatorIndex, pre_exit_queue_info: ExitQueueInfo,
@@ -599,7 +599,7 @@ func is_eligible_for_activation*(
599599
# Has not yet been activated
600600
validator.activation_epoch == FAR_FUTURE_EPOCH
601601

602-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#is_valid_indexed_attestation
602+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#is_valid_indexed_attestation
603603
proc is_valid_indexed_attestation*(
604604
state: ForkyBeaconState,
605605
# phase0.SomeIndexedAttestation | electra.SomeIndexedAttestation:
@@ -806,7 +806,7 @@ func check_attestation_target_epoch(
806806

807807
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.6/specs/phase0/beacon-chain.md#attestations
808808
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#modified-process_attestation
809-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/deneb/beacon-chain.md#modified-process_attestation
809+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/deneb/beacon-chain.md#modified-process_attestation
810810
func check_attestation_inclusion(
811811
consensusFork: static ConsensusFork, attestation_slot: Slot,
812812
current_slot: Slot): Result[void, cstring] =
@@ -908,7 +908,7 @@ func get_attestation_participation_flag_indices(
908908
# TODO these duplicate some stuff in state_transition_epoch which uses TotalBalances
909909
# better to centralize around that if feasible
910910

911-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/beacon-chain.md#get_total_active_balance
911+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/beacon-chain.md#get_total_active_balance
912912
func get_total_active_balance*(state: ForkyBeaconState, cache: var StateCache): Gwei =
913913
## Return the combined effective balance of the active validators.
914914
## Note: ``get_total_balance`` returns ``EFFECTIVE_BALANCE_INCREMENT`` Gwei
@@ -935,7 +935,7 @@ func get_base_reward_per_increment*(
935935
get_base_reward_per_increment_sqrt(
936936
integer_squareroot(distinctBase(total_active_balance)))
937937

938-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#get_base_reward
938+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/beacon-chain.md#get_base_reward
939939
func get_base_reward(
940940
state: altair.BeaconState | bellatrix.BeaconState | capella.BeaconState |
941941
deneb.BeaconState | electra.BeaconState | fulu.BeaconState,
@@ -1050,7 +1050,7 @@ proc check_attestation*(
10501050

10511051
ok()
10521052

1053-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/capella/beacon-chain.md#new-process_bls_to_execution_change
1053+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/capella/beacon-chain.md#new-process_bls_to_execution_change
10541054
proc check_bls_to_execution_change*(
10551055
genesisFork: Fork,
10561056
state: capella.BeaconState | deneb.BeaconState | electra.BeaconState |
@@ -1297,7 +1297,7 @@ func has_eth1_withdrawal_credential*(validator: Validator): bool =
12971297
## Check if ``validator`` has an 0x01 prefixed "eth1" withdrawal credential.
12981298
validator.withdrawal_credentials.data[0] == ETH1_ADDRESS_WITHDRAWAL_PREFIX
12991299

1300-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0/specs/electra/beacon-chain.md#new-has_execution_withdrawal_credential
1300+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/beacon-chain.md#new-has_execution_withdrawal_credential
13011301
func has_execution_withdrawal_credential*(validator: Validator): bool =
13021302
## Check if ``validator`` has a 0x01 or 0x02 prefixed withdrawal credential.
13031303
has_compounding_withdrawal_credential(validator) or
@@ -1358,7 +1358,7 @@ func queue_excess_active_balance(
13581358
signature: ValidatorSig.infinity,
13591359
slot: GENESIS_SLOT))
13601360

1361-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.7/specs/electra/beacon-chain.md#new-switch_to_compounding_validator
1361+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/beacon-chain.md#new-switch_to_compounding_validator
13621362
func switch_to_compounding_validator*(
13631363
state: var (electra.BeaconState | fulu.BeaconState),
13641364
index: ValidatorIndex) =

0 commit comments

Comments
 (0)