Skip to content

Commit 1835728

Browse files
tersecTomi-3-0
authored andcommitted
use EF consensus spec v1.5.0-beta.0 test vectors (status-im#6832)
1 parent 209990d commit 1835728

File tree

7 files changed

+31
-59
lines changed

7 files changed

+31
-59
lines changed

AllTests-mainnet.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,15 @@ OK: 253/253 Fail: 0/253 Skip: 0/253
513513
OK: 56/56 Fail: 0/56 Skip: 0/56
514514
## EF - PeerDAS - Networking [Preset: mainnet]
515515
```diff
516-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
517-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
518-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
519-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
520-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
521-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
522-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
523-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
524-
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_columns/pyspec_tests OK
516+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
517+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
518+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
519+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
520+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
521+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
522+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
523+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
524+
+ Networking - Get Custody Groups - mainnet/fulu/networking/get_custody_groups/pyspec_tests/ OK
525525
```
526526
OK: 9/9 Fail: 0/9 Skip: 0/9
527527
## EF - SSZ generic types

ConsensusSpecPreset-mainnet.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,7 @@ OK: 5/5 Fail: 0/5 Skip: 0/5
26082608
+ EF - Electra - Fork - fork_earliest_exit_epoch_less_than_current_epoch [Preset: mainnet] OK
26092609
+ EF - Electra - Fork - fork_earliest_exit_epoch_no_validator_exits [Preset: mainnet] OK
26102610
+ EF - Electra - Fork - fork_has_compounding_withdrawal_credential [Preset: mainnet] OK
2611+
+ EF - Electra - Fork - fork_inactive_compounding_validator_with_excess_balance [Preset: mai OK
26112612
+ EF - Electra - Fork - fork_many_next_epoch [Preset: mainnet] OK
26122613
+ EF - Electra - Fork - fork_next_epoch [Preset: mainnet] OK
26132614
+ EF - Electra - Fork - fork_next_epoch_with_block [Preset: mainnet] OK
@@ -2616,7 +2617,7 @@ OK: 5/5 Fail: 0/5 Skip: 0/5
26162617
+ EF - Electra - Fork - fork_random_low_balances [Preset: mainnet] OK
26172618
+ EF - Electra - Fork - fork_random_misc_balances [Preset: mainnet] OK
26182619
```
2619-
OK: 18/18 Fail: 0/18 Skip: 0/18
2620+
OK: 19/19 Fail: 0/19 Skip: 0/19
26202621
## EF - Electra - Operations - Attestation [Preset: mainnet]
26212622
```diff
26222623
+ [Invalid] EF - Electra - Operations - Attestation - invalid_after_max_inclusion_slot OK
@@ -3852,4 +3853,4 @@ OK: 69/88 Fail: 0/88 Skip: 19/88
38523853
OK: 3/3 Fail: 0/3 Skip: 0/3
38533854

38543855
---TOTAL---
3855-
OK: 3127/3146 Fail: 0/3146 Skip: 19/3146
3856+
OK: 3128/3147 Fail: 0/3147 Skip: 19/3147

ConsensusSpecPreset-minimal.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,6 +2737,7 @@ OK: 5/5 Fail: 0/5 Skip: 0/5
27372737
+ EF - Electra - Fork - fork_earliest_exit_epoch_less_than_current_epoch [Preset: minimal] OK
27382738
+ EF - Electra - Fork - fork_earliest_exit_epoch_no_validator_exits [Preset: minimal] OK
27392739
+ EF - Electra - Fork - fork_has_compounding_withdrawal_credential [Preset: minimal] OK
2740+
+ EF - Electra - Fork - fork_inactive_compounding_validator_with_excess_balance [Preset: min OK
27402741
+ EF - Electra - Fork - fork_many_next_epoch [Preset: minimal] OK
27412742
+ EF - Electra - Fork - fork_next_epoch [Preset: minimal] OK
27422743
+ EF - Electra - Fork - fork_next_epoch_with_block [Preset: minimal] OK
@@ -2746,7 +2747,7 @@ OK: 5/5 Fail: 0/5 Skip: 0/5
27462747
+ EF - Electra - Fork - fork_random_low_balances [Preset: minimal] OK
27472748
+ EF - Electra - Fork - fork_random_misc_balances [Preset: minimal] OK
27482749
```
2749-
OK: 20/20 Fail: 0/20 Skip: 0/20
2750+
OK: 21/21 Fail: 0/21 Skip: 0/21
27502751
## EF - Electra - Operations - Attestation [Preset: minimal]
27512752
```diff
27522753
+ [Invalid] EF - Electra - Operations - Attestation - invalid_after_max_inclusion_slot OK
@@ -3484,6 +3485,19 @@ OK: 4/4 Fail: 0/4 Skip: 0/4
34843485
+ Testing WithdrawalRequest OK
34853486
```
34863487
OK: 59/59 Fail: 0/59 Skip: 0/59
3488+
## EF - Light client - Data collection [Preset: minimal]
3489+
```diff
3490+
+ Light client - Data collection - minimal/altair/light_client/data_collection/pyspec_tests/ OK
3491+
+ Light client - Data collection - minimal/bellatrix/light_client/data_collection/pyspec_tes OK
3492+
+ Light client - Data collection - minimal/bellatrix/light_client/data_collection/pyspec_tes OK
3493+
+ Light client - Data collection - minimal/bellatrix/light_client/data_collection/pyspec_tes OK
3494+
+ Light client - Data collection - minimal/capella/light_client/data_collection/pyspec_tests OK
3495+
+ Light client - Data collection - minimal/capella/light_client/data_collection/pyspec_tests OK
3496+
+ Light client - Data collection - minimal/capella/light_client/data_collection/pyspec_tests OK
3497+
+ Light client - Data collection - minimal/deneb/light_client/data_collection/pyspec_tests/l OK
3498+
+ Light client - Data collection - minimal/electra/light_client/data_collection/pyspec_tests OK
3499+
```
3500+
OK: 9/9 Fail: 0/9 Skip: 0/9
34873501
## EF - Light client - Single merkle proof [Preset: minimal]
34883502
```diff
34893503
+ Light client - Single merkle proof - minimal/altair/light_client/single_merkle_proof/Beaco OK
@@ -4198,4 +4212,4 @@ OK: 185/207 Fail: 0/207 Skip: 22/207
41984212
OK: 3/3 Fail: 0/3 Skip: 0/3
41994213

42004214
---TOTAL---
4201-
OK: 3442/3464 Fail: 0/3464 Skip: 22/3464
4215+
OK: 3452/3474 Fail: 0/3474 Skip: 22/3474

beacon_chain/spec/datatypes/base.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export
7474
tables, results, endians2, json_serialization, sszTypes, beacon_time, crypto,
7575
digest, presets
7676

77-
const SPEC_VERSION* = "1.5.0-alpha.10"
77+
const SPEC_VERSION* = "1.5.0-beta.0"
7878
## Spec version we're aiming to be compatible with, right now
7979

8080
const

beacon_chain/sync/sync_protocol.nim

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -374,49 +374,6 @@ p2pProtocol BeaconSync(version = 1,
374374
"1", peer, peer.networkState.dag, response, startSlot, reqCount,
375375
MAX_BLOBS_PER_BLOCK, MAX_REQUEST_BLOB_SIDECARS)
376376

377-
# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/deneb/p2p-interface.md#blobsidecarsbyroot-v1
378-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/p2p-interface.md#blobsidecarsbyroot-v2
379-
proc blobSidecarsByRoot_v2(
380-
peer: Peer,
381-
blobIds: BlobIdentifierList,
382-
response: MultipleChunksResponse[
383-
ref BlobSidecar, Limit(MAX_REQUEST_BLOB_SIDECARS_ELECTRA)])
384-
{.async, libp2pProtocol("blob_sidecars_by_root", 2).} =
385-
# TODO Semantically, this request should return a non-ref, but doing so
386-
# runs into extreme inefficiency due to the compiler introducing
387-
# hidden copies - in future nim versions with move support, this should
388-
# be revisited
389-
# TODO This code is more complicated than it needs to be, since the type
390-
# of the multiple chunks response is not actually used in this server
391-
# implementation (it's used to derive the signature of the client
392-
# function, not in the code below!)
393-
# TODO although you can't tell from this function definition, a magic
394-
# client call that returns `seq[ref BlobSidecar]` will
395-
# will be generated by the libp2p macro - we guarantee that seq items
396-
# are `not-nil` in the implementation
397-
getBlobSidecarsByRoot("2", peer, peer.networkState.dag, response, blobIds)
398-
399-
# https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/deneb/p2p-interface.md#blobsidecarsbyrange-v1
400-
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/p2p-interface.md#blobsidecarsbyrange-v2
401-
proc blobSidecarsByRange_v2(
402-
peer: Peer,
403-
startSlot: Slot,
404-
reqCount: uint64,
405-
response: MultipleChunksResponse[
406-
ref BlobSidecar, Limit(MAX_REQUEST_BLOB_SIDECARS_ELECTRA)])
407-
{.async, libp2pProtocol("blob_sidecars_by_range", 2).} =
408-
# TODO This code is more complicated than it needs to be, since the type
409-
# of the multiple chunks response is not actually used in this server
410-
# implementation (it's used to derive the signature of the client
411-
# function, not in the code below!)
412-
# TODO although you can't tell from this function definition, a magic
413-
# client call that returns `seq[ref BlobSidecar]` will
414-
# will be generated by the libp2p macro - we guarantee that seq items
415-
# are `not-nil` in the implementation
416-
getBlobSidecarsByRange(
417-
"2", peer, peer.networkState.dag, response, startSlot, reqCount,
418-
MAX_BLOBS_PER_BLOCK_ELECTRA, MAX_REQUEST_BLOB_SIDECARS_ELECTRA)
419-
420377
# https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/fulu/p2p-interface.md#datacolumnsidecarsbyroot-v1
421378
proc dataColumnSidecarsByRoot(
422379
peer: Peer,

tests/consensus_spec/test_fixture_networking.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ suite "EF - PeerDAS - Networking" & preset():
4747
const presetPath = SszTestsDir/const_preset
4848
# foldering to be resolved in alpha 11 release of consensus spec tests
4949
let basePath =
50-
presetPath/"fulu"/"networking"/"get_custody_columns"/"pyspec_tests"
50+
presetPath/"fulu"/"networking"/"get_custody_groups"/"pyspec_tests"
5151
for kind, path in walkDir(basePath, relative = true, checkDir = true):
5252
runGetCustodyColumns(suiteName, basePath/path)

vendor/nim-eth2-scenarios

0 commit comments

Comments
 (0)