@@ -370,8 +370,8 @@ func get_slashing_penalty*(
370
370
else :
371
371
{.fatal : " invalid BeaconState type" .}
372
372
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
373
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/phase0/beacon-chain.md#slash_validator
374
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/altair/beacon-chain.md#modified-slash_validator
375
375
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
376
376
func get_whistleblower_reward * (
377
377
state: phase0.BeaconState | altair.BeaconState | bellatrix.BeaconState |
@@ -385,8 +385,8 @@ func get_whistleblower_reward*(
385
385
validator_effective_balance: Gwei ): Gwei =
386
386
validator_effective_balance div WHISTLEBLOWER_REWARD_QUOTIENT_ELECTRA
387
387
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
388
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/phase0/beacon-chain.md#slash_validator
389
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/altair/beacon-chain.md#modified-slash_validator
390
390
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.8/specs/bellatrix/beacon-chain.md#modified-slash_validator
391
391
func get_proposer_reward (state: ForkyBeaconState , whistleblower_reward: Gwei ): Gwei =
392
392
when state is phase0.BeaconState :
@@ -398,9 +398,9 @@ func get_proposer_reward(state: ForkyBeaconState, whistleblower_reward: Gwei): G
398
398
else :
399
399
{.fatal : " invalid BeaconState type" .}
400
400
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
401
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/phase0/beacon-chain.md#slash_validator
402
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/altair/beacon-chain.md#modified-slash_validator
403
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/bellatrix/beacon-chain.md#modified-slash_validator
404
404
proc slash_validator * (
405
405
cfg: RuntimeConfig , state: var ForkyBeaconState ,
406
406
slashed_index: ValidatorIndex , pre_exit_queue_info: ExitQueueInfo ,
@@ -908,7 +908,7 @@ func get_attestation_participation_flag_indices(
908
908
# TODO these duplicate some stuff in state_transition_epoch which uses TotalBalances
909
909
# better to centralize around that if feasible
910
910
911
- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2 /specs/phase0/beacon-chain.md#get_total_active_balance
911
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/phase0/beacon-chain.md#get_total_active_balance
912
912
func get_total_active_balance * (state: ForkyBeaconState , cache: var StateCache ): Gwei =
913
913
# # Return the combined effective balance of the active validators.
914
914
# # Note: ``get_total_balance`` returns ``EFFECTIVE_BALANCE_INCREMENT`` Gwei
@@ -935,7 +935,7 @@ func get_base_reward_per_increment*(
935
935
get_base_reward_per_increment_sqrt (
936
936
integer_squareroot (distinctBase (total_active_balance)))
937
937
938
- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2 /specs/altair/beacon-chain.md#get_base_reward
938
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/altair/beacon-chain.md#get_base_reward
939
939
func get_base_reward (
940
940
state: altair.BeaconState | bellatrix.BeaconState | capella.BeaconState |
941
941
deneb.BeaconState | electra.BeaconState | fulu.BeaconState ,
@@ -2034,7 +2034,7 @@ func upgrade_to_capella*(cfg: RuntimeConfig, pre: bellatrix.BeaconState):
2034
2034
# historical_summaries initialized to correct default automatically
2035
2035
)
2036
2036
2037
- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2 /specs/deneb/fork.md#upgrading-the-state
2037
+ # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.3 /specs/deneb/fork.md#upgrading-the-state
2038
2038
func upgrade_to_deneb * (cfg: RuntimeConfig , pre: capella.BeaconState ):
2039
2039
ref deneb.BeaconState =
2040
2040
let
0 commit comments