@@ -96,7 +96,7 @@ func get_validator_churn_limit*(
9696 count_active_validators (
9797 state, state.get_current_epoch (), cache) div cfg.CHURN_LIMIT_QUOTIENT )
9898
99- # https://github.com/ethereum/consensus-specs/blob/v1.4.0 /specs/deneb/beacon-chain.md#new-get_validator_activation_churn_limit
99+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/deneb/beacon-chain.md#new-get_validator_activation_churn_limit
100100func get_validator_activation_churn_limit * (
101101 cfg: RuntimeConfig , state: deneb.BeaconState | electra.BeaconState ,
102102 cache: var StateCache ): uint64 =
@@ -270,7 +270,7 @@ func compute_consolidation_epoch_and_update_churn*(
270270
271271 state.earliest_consolidation_epoch
272272
273- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0 /specs/electra/beacon-chain.md#updated- -initiate_validator_exit
273+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/electra/beacon-chain.md#modified -initiate_validator_exit
274274func initiate_validator_exit * (
275275 cfg: RuntimeConfig , state: var electra.BeaconState ,
276276 index: ValidatorIndex , exit_queue_info: ExitQueueInfo ,
@@ -326,7 +326,7 @@ func get_whistleblower_reward*(
326326 validator_effective_balance: Gwei ): Gwei =
327327 validator_effective_balance div WHISTLEBLOWER_REWARD_QUOTIENT
328328
329- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.0 /specs/electra/beacon-chain.md#updated -slash_validator
329+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/electra/beacon-chain.md#modified -slash_validator
330330func get_whistleblower_reward * (
331331 state: electra.BeaconState , validator_effective_balance: Gwei ): Gwei =
332332 validator_effective_balance div WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA
@@ -407,7 +407,7 @@ func get_initial_beacon_block*(state: phase0.HashedBeaconState):
407407 phase0.TrustedSignedBeaconBlock (
408408 message: message, root: hash_tree_root (message))
409409
410- # https://github.com/ethereum/consensus-specs/blob/v1.3.0 /specs/altair/beacon-chain.md#initialize-state-for-pure-altair-testnets-and-test-vectors
410+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/altair/beacon-chain.md#initialize-state-for-pure-altair-testnets-and-test-vectors
411411func get_initial_beacon_block * (state: altair.HashedBeaconState ):
412412 altair.TrustedSignedBeaconBlock =
413413 # The genesis block is implicitly trusted
@@ -1128,7 +1128,7 @@ proc process_attestation*(
11281128
11291129 ok (proposer_reward)
11301130
1131- # https://github.com/ethereum/consensus-specs/blob/v1.4.0 /specs/altair/beacon-chain.md#get_next_sync_committee_indices
1131+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/altair/beacon-chain.md#get_next_sync_committee_indices
11321132# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/electra/beacon-chain.md#modified-get_next_sync_committee_indices
11331133func get_next_sync_committee_keys (
11341134 state: altair.BeaconState | bellatrix.BeaconState | capella.BeaconState |
@@ -1173,7 +1173,7 @@ func get_next_sync_committee_keys(
11731173 i += 1 'u64
11741174 res
11751175
1176- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3 /specs/capella/beacon-chain.md#has_eth1_withdrawal_credential
1176+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/capella/beacon-chain.md#has_eth1_withdrawal_credential
11771177func has_eth1_withdrawal_credential * (validator: Validator ): bool =
11781178 # # Check if ``validator`` has an 0x01 prefixed "eth1" withdrawal credential.
11791179 validator.withdrawal_credentials.data[0 ] == ETH1_ADDRESS_WITHDRAWAL_PREFIX
@@ -1195,7 +1195,7 @@ func has_execution_withdrawal_credential*(validator: Validator): bool =
11951195 has_compounding_withdrawal_credential (validator) or
11961196 has_eth1_withdrawal_credential (validator)
11971197
1198- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3 /specs/capella/beacon-chain.md#is_fully_withdrawable_validator
1198+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.4 /specs/capella/beacon-chain.md#is_fully_withdrawable_validator
11991199# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/electra/beacon-chain.md#updated-is_fully_withdrawable_validator
12001200func is_fully_withdrawable_validator (
12011201 fork: static ConsensusFork , validator: Validator , balance: Gwei ,
0 commit comments