Skip to content

Commit be03aae

Browse files
authored
Merge branch 'unstable' into arm-fix-2
2 parents 571649b + 00f2bb8 commit be03aae

Some content is hidden

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

58 files changed

+170
-242
lines changed

beacon_chain/beacon_chain_db_immutable.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type
132132
current_sync_committee*: SyncCommittee # [New in Altair]
133133
next_sync_committee*: SyncCommittee # [New in Altair]
134134

135-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/bellatrix/beacon-chain.md#beaconstate
135+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/bellatrix/beacon-chain.md#beaconstate
136136
# Memory-representation-equivalent to a Bellatrix BeaconState for in-place SSZ
137137
# reading and writing
138138
BellatrixBeaconStateNoImmutableValidators* = object

beacon_chain/consensus_object_pools/block_clearance.nim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{.push raises: [].}
99

1010
import
11-
std/sequtils,
1211
chronicles,
1312
results,
14-
stew/assign2,
1513
../spec/[
1614
beaconstate, forks, signatures, signatures_batch,
1715
state_transition, state_transition_epoch],
@@ -504,10 +502,6 @@ proc addBackfillBlockData*(
504502
return ok()
505503
return err(error)
506504
startTick = Moment.now()
507-
parentBlock = dag.getForkedBlock(parent.bid.root).get()
508-
trustedStateRoot =
509-
withBlck(parentBlock):
510-
forkyBlck.message.state_root
511505
clearanceBlock = BlockSlotId.init(parent.bid, forkyBlck.message.slot)
512506
updateFlags1 = dag.updateFlags
513507
# TODO (cheatfate): {skipLastStateRootCalculation} flag here could

beacon_chain/consensus_object_pools/spec_cache.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-beta.1/specs/phase0/validator.md#attestation-data
296+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#attestation-data
297297
AttestationData(
298298
slot: slot,
299299
index: committee_index.asUInt64,

beacon_chain/el/eth1_chain.nim

Lines changed: 4 additions & 4 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-beta.1/specs/phase0/validator.md#get_eth1_data
85+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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-beta.1/specs/phase0/validator.md#get_eth1_data
89+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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-beta.1/specs/phase0/validator.md#get_eth1_data
97+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#get_eth1_data
9898
func is_candidate_block(cfg: RuntimeConfig,
9999
blk: Eth1Block,
100100
period_start: uint64): bool =
@@ -274,7 +274,7 @@ proc trackFinalizedState*(chain: var Eth1Chain,
274274
if result:
275275
chain.pruneOldBlocks(finalizedStateDepositIndex)
276276

277-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/phase0/validator.md#get_eth1_data
277+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#get_eth1_data
278278
proc getBlockProposalData*(chain: var Eth1Chain,
279279
state: ForkedHashedBeaconState,
280280
finalizedEth1Data: Eth1Data,

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-beta.1/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

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

beacon_chain/fork_choice/fork_choice.nim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import
2222
export results, fork_choice_types
2323
export proto_array.len
2424

25-
# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md
2625
# This is a port of https://github.com/sigp/lighthouse/pull/804
2726
# which is a port of "Proto-Array": https://github.com/protolambda/lmd-ghost
2827
# See also:

beacon_chain/gossip_processing/gossip_validation.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ proc validateVoluntaryExit*(
15561556

15571557
ok()
15581558

1559-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/altair/p2p-interface.md#sync_committee_subnet_id
1559+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/p2p-interface.md#sync_committee_subnet_id
15601560
proc validateSyncCommitteeMessage*(
15611561
dag: ChainDAGRef,
15621562
quarantine: ref Quarantine,

beacon_chain/gossip_processing/light_client_processor.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) 2022-2024 Status Research & Development GmbH
2+
# Copyright (c) 2022-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).
@@ -564,7 +564,7 @@ proc processLightClientFinalityUpdate*(
564564
self.latestFinalityUpdate = finality_update.toOptimistic
565565
v
566566

567-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/altair/light-client/sync-protocol.md#process_light_client_finality_update
567+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/light-client/sync-protocol.md#process_light_client_finality_update
568568
proc processLightClientOptimisticUpdate*(
569569
self: var LightClientProcessor, src: MsgSource,
570570
optimistic_update: ForkedLightClientOptimisticUpdate

beacon_chain/libnimbus_lc/libnimbus_lc.h

Lines changed: 3 additions & 3 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-beta.1/configs/README.md
97+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/configs/README.md
9898
*/
9999
ETH_RESULT_USE_CHECK
100100
ETHConsensusConfig *_Nullable ETHConsensusConfigCreateFromYaml(const char *configFileContent);
@@ -150,9 +150,9 @@ 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.1/specs/altair/beacon-chain.md#beaconstate
153+
* @see https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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-beta.1/specs/capella/beacon-chain.md#beaconstate
155+
* @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
157157
*/
158158
ETH_RESULT_USE_CHECK

beacon_chain/libnimbus_lc/libnimbus_lc.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ 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.1/specs/altair/beacon-chain.md#beaconstate
145+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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
148-
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/configs/README.md
148+
## * https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/configs/README.md
149149
let
150150
consensusFork = ConsensusFork.decodeString($consensusVersion).valueOr:
151151
return nil

beacon_chain/networking/eth2_network.nim

Lines changed: 2 additions & 2 deletions
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-beta.1/specs/altair/p2p-interface.md#topics-and-messages
2270+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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)
@@ -2635,7 +2635,7 @@ proc loadCgcnetMetadataAndEnr*(node: Eth2Node, cgcnets: CgcCount) =
26352635
debug "Updated ENR cgc", cgcnets
26362636

26372637
proc updateSyncnetsMetadata*(node: Eth2Node, syncnets: SyncnetBits) =
2638-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/altair/validator.md#sync-committee-subnet-stability
2638+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/validator.md#sync-committee-subnet-stability
26392639
if node.metadata.syncnets == syncnets:
26402640
return
26412641

beacon_chain/nimbus_beacon_node.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ proc installMessageValidators(node: BeaconNode) =
20062006
MsgSource.gossip, signedAggregateAndProof)))
20072007

20082008
# attester_slashing
2009-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/p2p-interface.md#attester_slashing
2009+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/p2p-interface.md#attester_slashing
20102010
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.6/specs/electra/p2p-interface.md#modifications-in-electra
20112011
when consensusFork >= ConsensusFork.Electra:
20122012
node.network.addValidator(
@@ -2060,7 +2060,7 @@ proc installMessageValidators(node: BeaconNode) =
20602060
MsgSource.gossip, msg, idx)))
20612061

20622062
# sync_committee_contribution_and_proof
2063-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/altair/p2p-interface.md#sync_committee_contribution_and_proof
2063+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/p2p-interface.md#sync_committee_contribution_and_proof
20642064
node.network.addAsyncValidator(
20652065
getSyncCommitteeContributionAndProofTopic(digest), proc (
20662066
msg: SignedContributionAndProof
@@ -2070,7 +2070,7 @@ proc installMessageValidators(node: BeaconNode) =
20702070
MsgSource.gossip, msg)))
20712071

20722072
when consensusFork >= ConsensusFork.Capella:
2073-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/capella/p2p-interface.md#bls_to_execution_change
2073+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/capella/p2p-interface.md#bls_to_execution_change
20742074
node.network.addAsyncValidator(
20752075
getBlsToExecutionChangeTopic(digest), proc (
20762076
msg: SignedBLSToExecutionChange

beacon_chain/rpc/rest_config_api.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
9090
MAX_VOLUNTARY_EXITS:
9191
Base10.toString(MAX_VOLUNTARY_EXITS),
9292

93-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/presets/mainnet/altair.yaml
93+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/altair.yaml
9494
INACTIVITY_PENALTY_QUOTIENT_ALTAIR:
9595
Base10.toString(INACTIVITY_PENALTY_QUOTIENT_ALTAIR),
9696
MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR:
@@ -106,7 +106,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
106106
UPDATE_TIMEOUT:
107107
Base10.toString(UPDATE_TIMEOUT),
108108

109-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/presets/mainnet/bellatrix.yaml
109+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/bellatrix.yaml
110110
INACTIVITY_PENALTY_QUOTIENT_BELLATRIX:
111111
Base10.toString(INACTIVITY_PENALTY_QUOTIENT_BELLATRIX),
112112
MIN_SLASHING_PENALTY_QUOTIENT_BELLATRIX:
@@ -122,7 +122,7 @@ proc installConfigApiHandlers*(router: var RestRouter, node: BeaconNode) =
122122
MAX_EXTRA_DATA_BYTES:
123123
Base10.toString(uint64(MAX_EXTRA_DATA_BYTES)),
124124

125-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/presets/mainnet/capella.yaml
125+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/presets/mainnet/capella.yaml
126126
MAX_BLS_TO_EXECUTION_CHANGES:
127127
Base10.toString(uint64(MAX_BLS_TO_EXECUTION_CHANGES)),
128128
MAX_WITHDRAWALS_PER_PAYLOAD:

beacon_chain/spec/beacon_time.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ template `+`*(a: TimeDiff, b: Duration): TimeDiff =
135135
const
136136
# Offsets from the start of the slot to when the corresponding message should
137137
# be sent
138-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/phase0/validator.md#attesting
138+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#attesting
139139
attestationSlotOffset* = TimeDiff(nanoseconds:
140140
NANOSECONDS_PER_SLOT.int64 div INTERVALS_PER_SLOT)
141-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/phase0/validator.md#broadcast-aggregate
141+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#broadcast-aggregate
142142
aggregateSlotOffset* = TimeDiff(nanoseconds:
143143
NANOSECONDS_PER_SLOT.int64 * 2 div INTERVALS_PER_SLOT)
144144
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/altair/validator.md#prepare-sync-committee-message

beacon_chain/spec/beaconstate.nim

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func has_compounding_withdrawal_credential*(validator: Validator): bool =
5454
## credential.
5555
is_compounding_withdrawal_credential(validator.withdrawal_credentials)
5656

57-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.7/specs/electra/beacon-chain.md#new-get_max_effective_balance
57+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/beacon-chain.md#new-get_max_effective_balance
5858
func get_max_effective_balance*(validator: Validator): Gwei =
5959
## Get max effective balance for ``validator``.
6060
if has_compounding_withdrawal_credential(validator):
@@ -370,8 +370,8 @@ func get_slashing_penalty*(
370370
else:
371371
{.fatal: "invalid BeaconState type".}
372372

373-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/phase0/beacon-chain.md#slash_validator
374-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/altair/beacon-chain.md#modified-slash_validator
373+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
374+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
375375
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
376376
func get_whistleblower_reward*(
377377
state: phase0.BeaconState | altair.BeaconState | bellatrix.BeaconState |
@@ -385,8 +385,8 @@ func get_whistleblower_reward*(
385385
validator_effective_balance: Gwei): Gwei =
386386
validator_effective_balance div WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA
387387

388-
# https://github.com/ethereum/consensus-specs/blob/v1.4.0/specs/phase0/beacon-chain.md#slash_validator
389-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.9/specs/altair/beacon-chain.md#modified-slash_validator
388+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
389+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
390390
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
391391
func get_proposer_reward(state: ForkyBeaconState, whistleblower_reward: Gwei): Gwei =
392392
when state is phase0.BeaconState:
@@ -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.5.0-beta.0/specs/phase0/beacon-chain.md#slash_validator
402-
# 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-beta.1/specs/bellatrix/beacon-chain.md#modified-slash_validator
401+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/beacon-chain.md#slash_validator
402+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#modified-slash_validator
403+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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,
@@ -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-beta.0/specs/phase0/beacon-chain.md#get_total_active_balance
911+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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.5.0-beta.1/specs/altair/beacon-chain.md#get_base_reward
938+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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-beta.1/specs/capella/beacon-chain.md#new-process_bls_to_execution_change
1053+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/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 |
@@ -2034,7 +2034,7 @@ func upgrade_to_capella*(cfg: RuntimeConfig, pre: bellatrix.BeaconState):
20342034
# historical_summaries initialized to correct default automatically
20352035
)
20362036

2037-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/deneb/fork.md#upgrading-the-state
2037+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/deneb/fork.md#upgrading-the-state
20382038
func upgrade_to_deneb*(cfg: RuntimeConfig, pre: capella.BeaconState):
20392039
ref deneb.BeaconState =
20402040
let

beacon_chain/spec/datatypes/altair.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static:
4040
doAssert ord(TIMELY_HEAD_FLAG_INDEX) == 2
4141

4242
const
43-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/altair/beacon-chain.md#incentivization-weights
43+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#incentivization-weights
4444
TIMELY_SOURCE_WEIGHT* = 14
4545
TIMELY_TARGET_WEIGHT* = 26
4646
TIMELY_HEAD_WEIGHT* = 14
@@ -96,7 +96,7 @@ type
9696
sync_committee_bits*: BitArray[SYNC_COMMITTEE_SIZE]
9797
sync_committee_signature*: TrustedSig
9898

99-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.1/specs/altair/beacon-chain.md#synccommittee
99+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/beacon-chain.md#synccommittee
100100
SyncCommittee* = object
101101
pubkeys*: HashArray[Limit SYNC_COMMITTEE_SIZE, ValidatorPubKey]
102102
aggregate_pubkey*: ValidatorPubKey
@@ -668,7 +668,7 @@ chronicles.formatIt SyncCommitteeContribution: shortLog(it)
668668
chronicles.formatIt ContributionAndProof: shortLog(it)
669669
chronicles.formatIt SignedContributionAndProof: shortLog(it)
670670

671-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/altair/light-client/sync-protocol.md#is_valid_light_client_header
671+
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/altair/light-client/sync-protocol.md#is_valid_light_client_header
672672
func is_valid_light_client_header*(
673673
header: LightClientHeader, cfg: RuntimeConfig): bool =
674674
true

0 commit comments

Comments
 (0)