Skip to content

Commit 5c48982

Browse files
authored
a dozen spec URL updates to v1.1.5 (#3078)
1 parent 59db4b4 commit 5c48982

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

beacon_chain/consensus_object_pools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This folder holds the various consensus object pools needed for a blockchain cli
44

55
Object in those pools have passed the "gossip validation" filter according
66
to specs:
7-
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/p2p-interface.md#beacon_block
7+
- blocks: https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/p2p-interface.md#beacon_block
88
- aggregate attestations: https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/p2p-interface.md#beacon_aggregate_and_proof
99
- unaggregated attestation: https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/p2p-interface.md#beacon_attestation_subnet_id
1010
- voluntary exits: https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/p2p-interface.md#voluntary_exit

beacon_chain/eth1/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: [Defect].}
99

10-
# https://github.com/ethereum/consensus-specs/blob/v1.1.2/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
10+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/tests/core/pyspec/eth2spec/utils/merkle_minimal.py
1111

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

beacon_chain/spec/beaconstate.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func get_validator_from_deposit*(deposit: DepositData):
6363
effective_balance: effective_balance
6464
)
6565

66-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0/specs/phase0/beacon-chain.md#compute_activation_exit_epoch
66+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/beacon-chain.md#compute_activation_exit_epoch
6767
func compute_activation_exit_epoch*(epoch: Epoch): Epoch =
6868
## Return the epoch during which validator activations and exits initiated in
6969
## ``epoch`` take effect.

beacon_chain/spec/datatypes/altair.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const
5656
FINALIZED_ROOT_INDEX* = 105.GeneralizedIndex
5757
NEXT_SYNC_COMMITTEE_INDEX* = 55.GeneralizedIndex
5858

59-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0/specs/altair/beacon-chain.md#participation-flag-indices
59+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/altair/beacon-chain.md#participation-flag-indices
6060
TIMELY_SOURCE_FLAG_INDEX* = 0
6161
TIMELY_TARGET_FLAG_INDEX* = 1
6262
TIMELY_HEAD_FLAG_INDEX* = 2

beacon_chain/spec/datatypes/base.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type
183183
attestation_1*: TrustedIndexedAttestation
184184
attestation_2*: TrustedIndexedAttestation
185185

186-
# https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation
186+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/beacon-chain.md#indexedattestation
187187
IndexedAttestation* = object
188188
attesting_indices*: List[uint64, Limit MAX_VALIDATORS_PER_COMMITTEE]
189189
data*: AttestationData
@@ -392,7 +392,7 @@ type
392392
branch*: array[DEPOSIT_CONTRACT_TREE_DEPTH, Eth2Digest]
393393
deposit_count*: array[32, byte] # Uint256
394394

395-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0/specs/phase0/beacon-chain.md#validator
395+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/beacon-chain.md#validator
396396
ValidatorStatus* = object
397397
# This is a validator without the expensive, immutable, append-only parts
398398
# serialized. They're represented in memory to allow in-place SSZ reading

beacon_chain/spec/datatypes/phase0.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import
3333
json_serialization/types as jsonTypes
3434

3535
type
36-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0/specs/phase0/beacon-chain.md#beaconstate
36+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/phase0/beacon-chain.md#beaconstate
3737
BeaconState* = object
3838
# Versioning
3939
genesis_time*: uint64

beacon_chain/spec/helpers.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,14 @@ func is_merge_block(
518518
not is_merge_complete(state) and
519519
body.execution_payload != default(merge.ExecutionPayload)
520520

521-
# https://github.com/ethereum/consensus-specs/blob/v1.1.2/specs/merge/beacon-chain.md#is_execution_enabled
521+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/merge/beacon-chain.md#is_execution_enabled
522522
func is_execution_enabled*(
523523
state: merge.BeaconState,
524524
body: merge.BeaconBlockBody | merge.TrustedBeaconBlockBody |
525525
merge.SigVerifiedBeaconBlockBody): bool =
526526
is_merge_block(state, body) or is_merge_complete(state)
527527

528-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0-beta.4/specs/merge/beacon-chain.md#compute_timestamp_at_slot
528+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/merge/beacon-chain.md#compute_timestamp_at_slot
529529
func compute_timestamp_at_slot*(state: ForkyBeaconState, slot: Slot): uint64 =
530530
# Note: This function is unsafe with respect to overflows and underflows.
531531
let slots_since_genesis = slot - GENESIS_SLOT

beacon_chain/spec/signatures.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func contribution_and_proof_signing_root*(
158158
genesis_validators_root)
159159
compute_signing_root(msg, domain)
160160

161-
# https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.7/specs/altair/validator.md#aggregation-selection
161+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/specs/altair/validator.md#aggregation-selection
162162
proc sync_committee_selection_proof_signing_root*(
163163
fork: Fork,
164164
genesis_validators_root: Eth2Digest,

tests/mocking/mock_blocks.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func apply_randao_reveal(state: ForkyBeaconState, blck: var ForkySignedBeaconBlo
2929
blck.message.slot.compute_epoch_at_slot,
3030
privkey).toValidatorSig()
3131

32-
# https://github.com/ethereum/consensus-specs/blob/v1.1.4/tests/core/pyspec/eth2spec/test/helpers/block.py#L38-L54
32+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/tests/core/pyspec/eth2spec/test/helpers/block.py#L38-L54
3333
func sign_block(state: ForkyBeaconState, blck: var ForkySignedBeaconBlock) =
3434
let
3535
proposer_index = blck.message.proposer_index.ValidatorIndex
@@ -43,7 +43,7 @@ func sign_block(state: ForkyBeaconState, blck: var ForkySignedBeaconBlock) =
4343
blck.root,
4444
privkey).toValidatorSig()
4545

46-
# https://github.com/ethereum/consensus-specs/blob/v1.1.3/tests/core/pyspec/eth2spec/test/helpers/execution_payload.py#L1-L31
46+
# https://github.com/ethereum/consensus-specs/blob/v1.1.5/tests/core/pyspec/eth2spec/test/helpers/execution_payload.py#L1-L31
4747
func build_empty_execution_payload(state: merge.BeaconState): ExecutionPayload =
4848
## Assuming a pre-state of the same slot, build a valid ExecutionPayload
4949
## without any transactions.

0 commit comments

Comments
 (0)