mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
update to v1.6.0-alpha.6 (#15658)
* wip workspace update * update ethspecify yml * fixing ethspecify * fixing ethspecify * fixing loader test * changelog and reverting something in configs * adding bad hash
This commit is contained in:
10
WORKSPACE
10
WORKSPACE
@@ -253,16 +253,16 @@ filegroup(
|
||||
url = "https://github.com/ethereum/EIPs/archive/5480440fe51742ed23342b68cf106cefd427e39d.tar.gz",
|
||||
)
|
||||
|
||||
consensus_spec_version = "v1.6.0-alpha.5"
|
||||
consensus_spec_version = "v1.6.0-alpha.6"
|
||||
|
||||
load("@prysm//tools:download_spectests.bzl", "consensus_spec_tests")
|
||||
|
||||
consensus_spec_tests(
|
||||
name = "consensus_spec_tests",
|
||||
flavors = {
|
||||
"general": "sha256-BXuEb1XbeSft0qzVFnoB8KC0YR1qM3ybT5lKUDbUWn8=",
|
||||
"minimal": "sha256-EjwSHgBbWSoy5hm9V+A/bVMabyojaKsBNPrRtuPVq4k=",
|
||||
"mainnet": "sha256-OGWMzarzaV1B9mVpy48/DCUbhjfX+b64pAxWwPLWhAs=",
|
||||
"general": "sha256-7wkWuahuCO37uVYnxq8Badvi+jY907pBj68ixL8XDOI=",
|
||||
"minimal": "sha256-Qy/f27N0LffS/ej7VhIubwDejD6LMK0VdenKkqtZVt4=",
|
||||
"mainnet": "sha256-3H7mu5yE+FGz2Wr/nc8Nd9aEu93YoEpsYtn0zBSoeDE=",
|
||||
},
|
||||
version = consensus_spec_version,
|
||||
)
|
||||
@@ -278,7 +278,7 @@ filegroup(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
""",
|
||||
integrity = "sha256-FQWR5EZuVcQGR0ol9vpd7eunnfGexJ/7J3xycrFEJbU=",
|
||||
integrity = "sha256-uvz3XfMTGfy3/BtQQoEp5XQOgrWgcH/5Zo/gR0iiP+k=",
|
||||
strip_prefix = "consensus-specs-" + consensus_spec_version[1:],
|
||||
url = "https://github.com/ethereum/consensus-specs/archive/refs/tags/%s.tar.gz" % consensus_spec_version,
|
||||
)
|
||||
|
||||
3
changelog/james-prysm_alpaha6-spec-tests.md
Normal file
3
changelog/james-prysm_alpaha6-spec-tests.md
Normal file
@@ -0,0 +1,3 @@
|
||||
### Changed
|
||||
|
||||
- Updated consensus spec from v1.6.0-alpha.5 to v1.6.0-alpha.6
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
// These are variables that we don't use in Prysm. (i.e. future hardfork, light client... etc)
|
||||
// IMPORTANT: Use one field per line and sort these alphabetically to reduce conflicts.
|
||||
var placeholderFields = []string{
|
||||
"AGGREGRATE_DUE_BPS",
|
||||
"AGGREGRATE_DUE_BPS_GLOAS",
|
||||
"AGGREGATE_DUE_BPS",
|
||||
"AGGREGATE_DUE_BPS_GLOAS",
|
||||
"ATTESTATION_DEADLINE",
|
||||
"ATTESTATION_DUE_BPS",
|
||||
"ATTESTATION_DUE_BPS_GLOAS",
|
||||
@@ -42,6 +42,8 @@ var placeholderFields = []string{
|
||||
"EIP7732_FORK_VERSION",
|
||||
"EIP7805_FORK_EPOCH",
|
||||
"EIP7805_FORK_VERSION",
|
||||
"EIP7928_FORK_EPOCH",
|
||||
"EIP7928_FORK_VERSION",
|
||||
"EPOCHS_PER_SHUFFLING_PHASE",
|
||||
"GLOAS_FORK_EPOCH",
|
||||
"GLOAS_FORK_VERSION",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version: v1.6.0-alpha.5
|
||||
version: v1.6.0-alpha.6
|
||||
style: full
|
||||
|
||||
specrefs:
|
||||
@@ -61,7 +61,7 @@ exceptions:
|
||||
|
||||
configs:
|
||||
# Not implemented (placeholders)
|
||||
- AGGREGRATE_DUE_BPS#phase0
|
||||
- AGGREGATE_DUE_BPS#phase0
|
||||
- ATTESTATION_DUE_BPS#phase0
|
||||
- CONTRIBUTION_DUE_BPS#altair
|
||||
- PROPOSER_REORG_CUTOFF_BPS#phase0
|
||||
@@ -69,7 +69,7 @@ exceptions:
|
||||
- SYNC_MESSAGE_DUE_BPS#altair
|
||||
|
||||
# Not implemented: gloas (future fork)
|
||||
- AGGREGRATE_DUE_BPS_GLOAS#gloas
|
||||
- AGGREGATE_DUE_BPS_GLOAS#gloas
|
||||
- ATTESTATION_DUE_BPS_GLOAS#gloas
|
||||
- CONTRIBUTION_DUE_BPS_GLOAS#gloas
|
||||
- GLOAS_FORK_EPOCH#gloas
|
||||
@@ -168,6 +168,7 @@ exceptions:
|
||||
|
||||
# Not implemented: phase0
|
||||
- calculate_committee_fraction#phase0
|
||||
- compute_fork_version#phase0
|
||||
- compute_pulled_up_tip#phase0
|
||||
- filter_block_tree#phase0
|
||||
- get_aggregate_and_proof#phase0
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
ALTAIR_FORK_VERSION: Version = '0x01000000'
|
||||
</spec>
|
||||
|
||||
- name: AGGREGRATE_DUE_BPS
|
||||
- name: AGGREGATE_DUE_BPS
|
||||
sources: []
|
||||
spec: |
|
||||
<spec config_var="AGGREGRATE_DUE_BPS" fork="phase0" hash="74073466">
|
||||
AGGREGRATE_DUE_BPS: uint64 = 6667
|
||||
<spec config_var="AGGREGATE_DUE_BPS" fork="phase0" hash="7eaa811a">
|
||||
AGGREGATE_DUE_BPS: uint64 = 6667
|
||||
</spec>
|
||||
|
||||
- name: ATTESTATION_PROPAGATION_SLOT_RANGE
|
||||
|
||||
@@ -510,37 +510,42 @@
|
||||
- file: beacon-chain/core/signing/signing_root.go
|
||||
search: func ComputeForkDigest(
|
||||
spec: |
|
||||
<spec fn="compute_fork_digest" fork="phase0" hash="8b33f64d">
|
||||
def compute_fork_digest(current_version: Version, genesis_validators_root: Root) -> ForkDigest:
|
||||
"""
|
||||
Return the 4-byte fork digest for the ``current_version`` and ``genesis_validators_root``.
|
||||
This is a digest primarily used for domain separation on the p2p layer.
|
||||
4-bytes suffices for practical separation of forks/chains.
|
||||
"""
|
||||
return ForkDigest(compute_fork_data_root(current_version, genesis_validators_root)[:4])
|
||||
</spec>
|
||||
|
||||
- name: compute_fork_digest#fulu
|
||||
sources: []
|
||||
spec: |
|
||||
<spec fn="compute_fork_digest" fork="fulu" hash="24737097">
|
||||
<spec fn="compute_fork_digest" fork="phase0" hash="e206968f">
|
||||
def compute_fork_digest(
|
||||
genesis_validators_root: Root,
|
||||
# [New in Fulu:EIP7892]
|
||||
epoch: Epoch,
|
||||
) -> ForkDigest:
|
||||
"""
|
||||
Return the 4-byte fork digest for the ``version`` and ``genesis_validators_root``
|
||||
XOR'd with the hash of the blob parameters for ``epoch``.
|
||||
Return the 4-byte fork digest for the ``genesis_validators_root`` at a given ``epoch``.
|
||||
|
||||
This is a digest primarily used for domain separation on the p2p layer.
|
||||
4-bytes suffices for practical separation of forks/chains.
|
||||
"""
|
||||
fork_version = compute_fork_version(epoch)
|
||||
base_digest = compute_fork_data_root(fork_version, genesis_validators_root)
|
||||
blob_parameters = get_blob_parameters(epoch)
|
||||
return ForkDigest(base_digest[:4])
|
||||
</spec>
|
||||
|
||||
- name: compute_fork_digest#fulu
|
||||
sources: []
|
||||
spec: |
|
||||
<spec fn="compute_fork_digest" fork="fulu" hash="e916a595">
|
||||
def compute_fork_digest(
|
||||
genesis_validators_root: Root,
|
||||
epoch: Epoch,
|
||||
) -> ForkDigest:
|
||||
"""
|
||||
Return the 4-byte fork digest for the ``genesis_validators_root`` at a given ``epoch``.
|
||||
|
||||
This is a digest primarily used for domain separation on the p2p layer.
|
||||
4-bytes suffices for practical separation of forks/chains.
|
||||
"""
|
||||
fork_version = compute_fork_version(epoch)
|
||||
base_digest = compute_fork_data_root(fork_version, genesis_validators_root)
|
||||
|
||||
# [Modified in Fulu:EIP7892]
|
||||
# Bitmask digest with hash of blob parameters
|
||||
blob_parameters = get_blob_parameters(epoch)
|
||||
return ForkDigest(
|
||||
bytes(
|
||||
xor(
|
||||
@@ -6088,7 +6093,7 @@
|
||||
- file: beacon-chain/core/blocks/payload.go
|
||||
search: func ProcessPayload(
|
||||
spec: |
|
||||
<spec fn="process_execution_payload" fork="fulu" hash="cc18d6ef">
|
||||
<spec fn="process_execution_payload" fork="fulu" hash="9a872dd6">
|
||||
def process_execution_payload(
|
||||
state: BeaconState, body: BeaconBlockBody, execution_engine: ExecutionEngine
|
||||
) -> None:
|
||||
@@ -6100,7 +6105,8 @@
|
||||
assert payload.prev_randao == get_randao_mix(state, get_current_epoch(state))
|
||||
# Verify timestamp
|
||||
assert payload.timestamp == compute_time_at_slot(state, state.slot)
|
||||
# [Modified in Fulu:EIP7892] Verify commitments are under limit
|
||||
# [Modified in Fulu:EIP7892]
|
||||
# Verify commitments are under limit
|
||||
assert (
|
||||
len(body.blob_kzg_commitments)
|
||||
<= get_blob_parameters(get_current_epoch(state)).max_blobs_per_block
|
||||
|
||||
Reference in New Issue
Block a user