2020-03-10 04:24:33 +00:00
|
|
|
AllTests-mainnet
|
|
|
|
===
|
2021-10-12 11:36:52 +00:00
|
|
|
##
|
|
|
|
```diff
|
|
|
|
+ Slashing test: duplicate_pubkey_not_slashable.json OK
|
|
|
|
+ Slashing test: multiple_interchanges_single_validator_single_message_gap.json OK
|
|
|
|
+ Slashing test: multiple_interchanges_single_validator_single_message_out_of_order.json OK
|
|
|
|
+ Slashing test: multiple_validators_multiple_blocks_and_attestations.json OK
|
|
|
|
+ Slashing test: multiple_validators_same_slot_blocks.json OK
|
|
|
|
+ Slashing test: single_validator_genesis_attestation.json OK
|
|
|
|
+ Slashing test: single_validator_import_only.json OK
|
|
|
|
+ Slashing test: single_validator_multiple_block_attempts.json OK
|
|
|
|
+ Slashing test: single_validator_multiple_blocks_and_attestations.json OK
|
|
|
|
+ Slashing test: single_validator_out_of_order_attestations.json OK
|
|
|
|
+ Slashing test: single_validator_out_of_order_blocks.json OK
|
|
|
|
+ Slashing test: single_validator_resign_attestation.json OK
|
|
|
|
+ Slashing test: single_validator_resign_block.json OK
|
|
|
|
+ Slashing test: single_validator_single_attestation.json OK
|
|
|
|
+ Slashing test: single_validator_single_block.json OK
|
|
|
|
+ Slashing test: single_validator_single_block_and_attestation.json OK
|
|
|
|
+ Slashing test: single_validator_single_block_and_attestation_signing_root.json OK
|
|
|
|
+ Slashing test: single_validator_slashable_attestations_double_vote.json OK
|
|
|
|
+ Slashing test: single_validator_slashable_attestations_surrounded_by_existing.json OK
|
|
|
|
+ Slashing test: single_validator_slashable_attestations_surrounds_existing.json OK
|
|
|
|
+ Slashing test: single_validator_slashable_blocks.json OK
|
|
|
|
+ Slashing test: single_validator_slashable_blocks_no_root.json OK
|
|
|
|
+ Slashing test: single_validator_source_greater_than_target.json OK
|
|
|
|
+ Slashing test: single_validator_two_blocks_no_signing_root.json OK
|
|
|
|
+ Slashing test: wrong_genesis_validators_root.json OK
|
|
|
|
```
|
|
|
|
OK: 25/25 Fail: 0/25 Skip: 0/25
|
2020-04-29 11:44:07 +00:00
|
|
|
## Attestation pool processing [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Attestations may arrive in any order [Preset: mainnet] OK
|
|
|
|
+ Attestations may overlap, bigger first [Preset: mainnet] OK
|
|
|
|
+ Attestations may overlap, smaller first [Preset: mainnet] OK
|
|
|
|
+ Attestations should be combined [Preset: mainnet] OK
|
2021-04-12 20:25:09 +00:00
|
|
|
+ Can add and retrieve simple attestations [Preset: mainnet] OK
|
|
|
|
+ Everyone voting for something different [Preset: mainnet] OK
|
2020-04-29 11:44:07 +00:00
|
|
|
+ Fork choice returns block with attestation OK
|
|
|
|
+ Fork choice returns latest block with no attestations OK
|
2020-07-09 09:29:32 +00:00
|
|
|
+ Trying to add a block twice tags the second as an error OK
|
|
|
|
+ Trying to add a duplicate block from an old pruned epoch is tagged as an error OK
|
2021-04-12 20:25:09 +00:00
|
|
|
+ Working with aggregates [Preset: mainnet] OK
|
2020-04-29 11:44:07 +00:00
|
|
|
```
|
2021-04-12 20:25:09 +00:00
|
|
|
OK: 11/11 Fail: 0/11 Skip: 0/11
|
Backfill support for ChainDAG (#3171)
In the ChainDAG, 3 block pointers are kept: genesis, tail and head. This
PR adds one more block pointer: the backfill block which represents the
block that has been backfilled so far.
When doing a checkpoint sync, a random block is given as starting point
- this is the tail block, and we require that the tail block has a
corresponding state.
When backfilling, we end up with blocks without corresponding states,
hence we cannot use `tail` as a backfill pointer - there is no state.
Nonetheless, we need to keep track of where we are in the backfill
process between restarts, such that we can answer GetBeaconBlocksByRange
requests.
This PR adds the basic support for backfill handling - it needs to be
integrated with backfill sync, and the REST API needs to be adjusted to
take advantage of the new backfilled blocks when responding to certain
requests.
Future work will also enable moving the tail in either direction:
* pruning means moving the tail forward in time and removing states
* backwards means recreating past states from genesis, such that
intermediate states are recreated step by step all the way to the tail -
at that point, tail, genesis and backfill will match up.
* backfilling is done when backfill != genesis - later, this will be the
WSS checkpoint instead
2021-12-13 13:36:06 +00:00
|
|
|
## Backfill
|
|
|
|
```diff
|
|
|
|
+ backfill to genesis OK
|
|
|
|
+ reload backfill position OK
|
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2020-03-10 04:24:33 +00:00
|
|
|
## Beacon chain DB [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ empty database [Preset: mainnet] OK
|
|
|
|
+ find ancestors [Preset: mainnet] OK
|
2021-06-29 15:09:29 +00:00
|
|
|
+ sanity check Altair and cross-fork getState rollback [Preset: mainnet] OK
|
2021-06-24 07:11:47 +00:00
|
|
|
+ sanity check Altair blocks [Preset: mainnet] OK
|
|
|
|
+ sanity check Altair states [Preset: mainnet] OK
|
|
|
|
+ sanity check Altair states, reusing buffers [Preset: mainnet] OK
|
2021-09-30 01:07:24 +00:00
|
|
|
+ sanity check Merge and cross-fork getState rollback [Preset: mainnet] OK
|
|
|
|
+ sanity check Merge blocks [Preset: mainnet] OK
|
|
|
|
+ sanity check Merge states [Preset: mainnet] OK
|
|
|
|
+ sanity check Merge states, reusing buffers [Preset: mainnet] OK
|
2020-03-10 04:24:33 +00:00
|
|
|
+ sanity check genesis roundtrip [Preset: mainnet] OK
|
2021-06-24 07:11:47 +00:00
|
|
|
+ sanity check phase 0 blocks [Preset: mainnet] OK
|
2021-06-29 15:09:29 +00:00
|
|
|
+ sanity check phase 0 getState rollback [Preset: mainnet] OK
|
2021-06-24 07:11:47 +00:00
|
|
|
+ sanity check phase 0 states [Preset: mainnet] OK
|
|
|
|
+ sanity check phase 0 states, reusing buffers [Preset: mainnet] OK
|
2021-01-18 20:34:41 +00:00
|
|
|
+ sanity check state diff roundtrip [Preset: mainnet] OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2021-09-30 01:07:24 +00:00
|
|
|
OK: 16/16 Fail: 0/16 Skip: 0/16
|
2020-03-10 04:24:33 +00:00
|
|
|
## Beacon state [Preset: mainnet]
|
|
|
|
```diff
|
2021-05-04 10:19:11 +00:00
|
|
|
+ Smoke test initialize_beacon_state_from_eth1 [Preset: mainnet] OK
|
2021-11-18 12:02:43 +00:00
|
|
|
+ get_beacon_proposer_index OK
|
|
|
|
+ latest_block_root OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2021-11-18 12:02:43 +00:00
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
Speed up altair block processing 2x (#3115)
* Speed up altair block processing >2x
Like #3089, this PR drastially speeds up historical REST queries and
other long state replays.
* cache sync committee validator indices
* use ~80mb less memory for validator pubkey mappings
* batch-verify sync aggregate signature (fixes #2985)
* document sync committee hack with head block vs sync message block
* add batch signature verification failure tests
Before:
```
../env.sh nim c -d:release -r ncli_db --db:mainnet_0/db bench --start-slot:-1000
All time are ms
Average, StdDev, Min, Max, Samples, Test
Validation is turned off meaning that no BLS operations are performed
5830.675, 0.000, 5830.675, 5830.675, 1, Initialize DB
0.481, 1.878, 0.215, 59.167, 981, Load block from database
8422.566, 0.000, 8422.566, 8422.566, 1, Load state from database
6.996, 1.678, 0.042, 14.385, 969, Advance slot, non-epoch
93.217, 8.318, 84.192, 122.209, 32, Advance slot, epoch
20.513, 23.665, 11.510, 201.561, 981, Apply block, no slot processing
0.000, 0.000, 0.000, 0.000, 0, Database load
0.000, 0.000, 0.000, 0.000, 0, Database store
```
After:
```
7081.422, 0.000, 7081.422, 7081.422, 1, Initialize DB
0.553, 2.122, 0.175, 66.692, 981, Load block from database
5439.446, 0.000, 5439.446, 5439.446, 1, Load state from database
6.829, 1.575, 0.043, 12.156, 969, Advance slot, non-epoch
94.716, 2.749, 88.395, 100.026, 32, Advance slot, epoch
11.636, 23.766, 4.889, 205.250, 981, Apply block, no slot processing
0.000, 0.000, 0.000, 0.000, 0, Database load
0.000, 0.000, 0.000, 0.000, 0, Database store
```
* add comment
2021-11-24 12:43:50 +00:00
|
|
|
## Block pool altair processing [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Invalid signatures [Preset: mainnet] OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2020-05-05 09:18:44 +00:00
|
|
|
## Block pool processing [Preset: mainnet]
|
|
|
|
```diff
|
2021-12-20 19:20:31 +00:00
|
|
|
+ Adding the same block twice returns a Duplicate error [Preset: mainnet] OK
|
2020-05-05 09:18:44 +00:00
|
|
|
+ Simple block add&get [Preset: mainnet] OK
|
|
|
|
+ getRef returns nil for missing blocks OK
|
improve slot processing speeds (#1670)
about 40% better slot processing times (with LTO enabled) - these don't
do BLS but are used
heavily during replay (state transition = slot + block transition)
tests using a recent medalla state and advancing it 1000 slots:
```
./ncli slots --preState2:state-302271-3c1dbf19-c1f944bf.ssz --slot:1000
--postState2:xx.ssz
```
pre:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
39.236, 0.000, 39.236, 39.236, 1,
Load state from file
0.049, 0.002, 0.046, 0.063, 968,
Apply slot
256.504, 81.008, 213.471, 591.902, 32,
Apply epoch slot
28.597, 0.000, 28.597, 28.597, 1,
Save state to file
```
cast:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
37.079, 0.000, 37.079, 37.079, 1,
Load state from file
0.042, 0.002, 0.040, 0.090, 968,
Apply slot
215.552, 68.763, 180.155, 500.103, 32,
Apply epoch slot
25.106, 0.000, 25.106, 25.106, 1,
Save state to file
```
cast+rewards:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
40.049, 0.000, 40.049, 40.049, 1,
Load state from file
0.048, 0.001, 0.045, 0.060, 968,
Apply slot
164.981, 76.273, 142.099, 477.868, 32,
Apply epoch slot
28.498, 0.000, 28.498, 28.498, 1,
Save state to file
```
cast+rewards+shr
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
12.898, 0.000, 12.898, 12.898, 1,
Load state from file
0.039, 0.002, 0.038, 0.054, 968,
Apply slot
139.971, 68.797, 120.088, 428.844, 32,
Apply epoch slot
24.761, 0.000, 24.761, 24.761, 1,
Save state to file
```
2020-09-16 20:59:33 +00:00
|
|
|
+ loading tail block works [Preset: mainnet] OK
|
2020-05-05 09:18:44 +00:00
|
|
|
+ updateHead updates head and headState [Preset: mainnet] OK
|
|
|
|
+ updateStateData sanity [Preset: mainnet] OK
|
|
|
|
```
|
2021-12-20 19:20:31 +00:00
|
|
|
OK: 6/6 Fail: 0/6 Skip: 0/6
|
2021-12-06 09:49:01 +00:00
|
|
|
## Block processor [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Reverse order block add & get [Preset: mainnet] OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2021-12-09 17:06:21 +00:00
|
|
|
## BlockId and helpers
|
2020-03-10 04:24:33 +00:00
|
|
|
```diff
|
2021-12-09 17:06:21 +00:00
|
|
|
+ atSlot sanity OK
|
|
|
|
+ parent sanity OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2021-12-07 13:43:06 +00:00
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-12-09 17:06:21 +00:00
|
|
|
## BlockRef and helpers
|
2020-03-10 04:24:33 +00:00
|
|
|
```diff
|
2021-12-09 17:06:21 +00:00
|
|
|
+ get_ancestor sanity OK
|
|
|
|
+ isAncestorOf sanity OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-12-09 17:06:21 +00:00
|
|
|
## BlockSlot and helpers
|
|
|
|
```diff
|
|
|
|
+ atSlot sanity OK
|
|
|
|
+ parent sanity OK
|
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
|
|
|
## ChainDAG helpers
|
|
|
|
```diff
|
|
|
|
+ epochAncestor sanity [Preset: mainnet] OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2021-09-08 03:46:33 +00:00
|
|
|
## Diverging hardforks
|
|
|
|
```diff
|
|
|
|
+ Non-tail block in common OK
|
|
|
|
+ Tail block only in common OK
|
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-04-28 16:41:02 +00:00
|
|
|
## Eth1 monitor
|
|
|
|
```diff
|
|
|
|
+ Rewrite HTTPS Infura URLs OK
|
2022-01-03 12:22:56 +00:00
|
|
|
+ Roundtrip engine RPC and consensus ExecutionPayload representations OK
|
2021-04-28 16:41:02 +00:00
|
|
|
```
|
2022-01-03 12:22:56 +00:00
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-03-29 19:17:48 +00:00
|
|
|
## Eth2 specific discovery tests
|
|
|
|
```diff
|
|
|
|
+ Invalid attnets field OK
|
|
|
|
+ Subnet query OK
|
|
|
|
+ Subnet query after ENR update OK
|
|
|
|
```
|
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2021-10-12 11:36:52 +00:00
|
|
|
## Ethereum Foundation - SSZ generic types
|
|
|
|
```diff
|
|
|
|
Testing basic_vector inputs - invalid Skip
|
|
|
|
+ Testing basic_vector inputs - valid OK
|
|
|
|
+ Testing bitlist inputs - invalid OK
|
|
|
|
+ Testing bitlist inputs - valid OK
|
|
|
|
Testing bitvector inputs - invalid Skip
|
|
|
|
+ Testing bitvector inputs - valid OK
|
|
|
|
+ Testing boolean inputs - invalid OK
|
|
|
|
+ Testing boolean inputs - valid OK
|
|
|
|
+ Testing containers inputs - invalid - skipping BitsStruct OK
|
|
|
|
+ Testing containers inputs - valid - skipping BitsStruct OK
|
|
|
|
+ Testing uints inputs - invalid OK
|
|
|
|
+ Testing uints inputs - valid OK
|
|
|
|
```
|
|
|
|
OK: 10/12 Fail: 0/12 Skip: 2/12
|
2020-09-24 17:05:49 +00:00
|
|
|
## Exit pool testing suite
|
|
|
|
```diff
|
|
|
|
+ addExitMessage/getAttesterSlashingMessage OK
|
|
|
|
+ addExitMessage/getProposerSlashingMessage OK
|
|
|
|
+ addExitMessage/getVoluntaryExitMessage OK
|
|
|
|
```
|
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2020-04-09 16:15:00 +00:00
|
|
|
## Fork Choice + Finality [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ fork_choice - testing finality #01 OK
|
|
|
|
+ fork_choice - testing finality #02 OK
|
|
|
|
+ fork_choice - testing no votes OK
|
|
|
|
+ fork_choice - testing with votes OK
|
|
|
|
```
|
|
|
|
OK: 4/4 Fail: 0/4 Skip: 0/4
|
2021-09-30 01:07:24 +00:00
|
|
|
## Fork id compatibility test
|
|
|
|
```diff
|
|
|
|
+ Digest check OK
|
|
|
|
+ Fork check OK
|
|
|
|
+ Next fork epoch check OK
|
|
|
|
```
|
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2021-11-10 11:39:08 +00:00
|
|
|
## Forked SSZ readers
|
|
|
|
```diff
|
|
|
|
+ load altair block OK
|
|
|
|
+ load altair state OK
|
|
|
|
+ load merge block OK
|
|
|
|
+ load merge state OK
|
|
|
|
+ load phase0 block OK
|
|
|
|
+ load phase0 state OK
|
|
|
|
+ should raise on unknown data OK
|
|
|
|
```
|
|
|
|
OK: 7/7 Fail: 0/7 Skip: 0/7
|
2021-12-21 14:24:23 +00:00
|
|
|
## Gossip fork transition
|
|
|
|
```diff
|
|
|
|
+ Gossip fork transition OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2021-04-26 20:39:44 +00:00
|
|
|
## Gossip validation [Preset: mainnet]
|
|
|
|
```diff
|
2021-08-28 09:00:00 +00:00
|
|
|
+ Any committee index is valid OK
|
Speed up altair block processing 2x (#3115)
* Speed up altair block processing >2x
Like #3089, this PR drastially speeds up historical REST queries and
other long state replays.
* cache sync committee validator indices
* use ~80mb less memory for validator pubkey mappings
* batch-verify sync aggregate signature (fixes #2985)
* document sync committee hack with head block vs sync message block
* add batch signature verification failure tests
Before:
```
../env.sh nim c -d:release -r ncli_db --db:mainnet_0/db bench --start-slot:-1000
All time are ms
Average, StdDev, Min, Max, Samples, Test
Validation is turned off meaning that no BLS operations are performed
5830.675, 0.000, 5830.675, 5830.675, 1, Initialize DB
0.481, 1.878, 0.215, 59.167, 981, Load block from database
8422.566, 0.000, 8422.566, 8422.566, 1, Load state from database
6.996, 1.678, 0.042, 14.385, 969, Advance slot, non-epoch
93.217, 8.318, 84.192, 122.209, 32, Advance slot, epoch
20.513, 23.665, 11.510, 201.561, 981, Apply block, no slot processing
0.000, 0.000, 0.000, 0.000, 0, Database load
0.000, 0.000, 0.000, 0.000, 0, Database store
```
After:
```
7081.422, 0.000, 7081.422, 7081.422, 1, Initialize DB
0.553, 2.122, 0.175, 66.692, 981, Load block from database
5439.446, 0.000, 5439.446, 5439.446, 1, Load state from database
6.829, 1.575, 0.043, 12.156, 969, Advance slot, non-epoch
94.716, 2.749, 88.395, 100.026, 32, Advance slot, epoch
11.636, 23.766, 4.889, 205.250, 981, Apply block, no slot processing
0.000, 0.000, 0.000, 0.000, 0, Database load
0.000, 0.000, 0.000, 0.000, 0, Database store
```
* add comment
2021-11-24 12:43:50 +00:00
|
|
|
+ validateAttestation OK
|
2021-04-26 20:39:44 +00:00
|
|
|
```
|
2021-08-28 09:00:00 +00:00
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-09-28 07:44:20 +00:00
|
|
|
## Gossip validation - Extra
|
|
|
|
```diff
|
|
|
|
+ validateSyncCommitteeMessage OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2020-03-10 04:24:33 +00:00
|
|
|
## Honest validator
|
|
|
|
```diff
|
2020-12-14 20:58:32 +00:00
|
|
|
+ General pubsub topics OK
|
2020-05-14 11:19:10 +00:00
|
|
|
+ Mainnet attestation topics OK
|
2020-12-14 20:58:32 +00:00
|
|
|
+ is_aggregator OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2020-12-14 20:58:32 +00:00
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2020-04-06 18:55:47 +00:00
|
|
|
## Interop
|
|
|
|
```diff
|
|
|
|
+ Interop genesis OK
|
|
|
|
+ Interop signatures OK
|
|
|
|
+ Mocked start private key OK
|
|
|
|
```
|
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2021-10-12 11:36:52 +00:00
|
|
|
## KeyStorage testing suite
|
|
|
|
```diff
|
|
|
|
+ Pbkdf2 errors OK
|
|
|
|
+ [PBKDF2] Keystore decryption OK
|
|
|
|
+ [PBKDF2] Keystore encryption OK
|
|
|
|
+ [PBKDF2] Network Keystore decryption OK
|
|
|
|
+ [PBKDF2] Network Keystore encryption OK
|
|
|
|
+ [SCRYPT] Keystore decryption OK
|
|
|
|
+ [SCRYPT] Keystore encryption OK
|
|
|
|
+ [SCRYPT] Network Keystore decryption OK
|
|
|
|
+ [SCRYPT] Network Keystore encryption OK
|
|
|
|
```
|
|
|
|
OK: 9/9 Fail: 0/9 Skip: 0/9
|
2021-08-17 08:07:17 +00:00
|
|
|
## Message signatures
|
|
|
|
```diff
|
|
|
|
+ Aggregate and proof signatures OK
|
|
|
|
+ Attestation signatures OK
|
|
|
|
+ Deposit signatures OK
|
|
|
|
+ Slot signatures OK
|
|
|
|
+ Sync committee message signatures OK
|
|
|
|
+ Sync committee selection proof signatures OK
|
|
|
|
+ Sync committee signed contribution and proof signatures OK
|
|
|
|
+ Voluntary exit signatures OK
|
|
|
|
```
|
|
|
|
OK: 8/8 Fail: 0/8 Skip: 0/8
|
2021-08-10 06:19:13 +00:00
|
|
|
## Old database versions [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ pre-1.1.0 OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2020-03-10 04:24:33 +00:00
|
|
|
## PeerPool testing suite
|
|
|
|
```diff
|
|
|
|
+ Access peers by key test OK
|
|
|
|
+ Acquire from empty pool OK
|
|
|
|
+ Acquire/Sorting and consistency test OK
|
improve slot processing speeds (#1670)
about 40% better slot processing times (with LTO enabled) - these don't
do BLS but are used
heavily during replay (state transition = slot + block transition)
tests using a recent medalla state and advancing it 1000 slots:
```
./ncli slots --preState2:state-302271-3c1dbf19-c1f944bf.ssz --slot:1000
--postState2:xx.ssz
```
pre:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
39.236, 0.000, 39.236, 39.236, 1,
Load state from file
0.049, 0.002, 0.046, 0.063, 968,
Apply slot
256.504, 81.008, 213.471, 591.902, 32,
Apply epoch slot
28.597, 0.000, 28.597, 28.597, 1,
Save state to file
```
cast:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
37.079, 0.000, 37.079, 37.079, 1,
Load state from file
0.042, 0.002, 0.040, 0.090, 968,
Apply slot
215.552, 68.763, 180.155, 500.103, 32,
Apply epoch slot
25.106, 0.000, 25.106, 25.106, 1,
Save state to file
```
cast+rewards:
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
40.049, 0.000, 40.049, 40.049, 1,
Load state from file
0.048, 0.001, 0.045, 0.060, 968,
Apply slot
164.981, 76.273, 142.099, 477.868, 32,
Apply epoch slot
28.498, 0.000, 28.498, 28.498, 1,
Save state to file
```
cast+rewards+shr
```
All time are ms
Average, StdDev, Min, Max, Samples,
Test
Validation is turned off meaning that no BLS operations are performed
12.898, 0.000, 12.898, 12.898, 1,
Load state from file
0.039, 0.002, 0.038, 0.054, 968,
Apply slot
139.971, 68.797, 120.088, 428.844, 32,
Apply epoch slot
24.761, 0.000, 24.761, 24.761, 1,
Save state to file
```
2020-09-16 20:59:33 +00:00
|
|
|
+ Delete peer on release text OK
|
2020-03-10 04:24:33 +00:00
|
|
|
+ Iterators test OK
|
|
|
|
+ Peer lifetime test OK
|
|
|
|
+ Safe/Clear test OK
|
2020-04-23 19:39:23 +00:00
|
|
|
+ Score check test OK
|
2020-09-24 17:05:49 +00:00
|
|
|
+ Space tests OK
|
2020-03-10 04:24:33 +00:00
|
|
|
+ addPeer() test OK
|
|
|
|
+ addPeerNoWait() test OK
|
|
|
|
+ deletePeer() test OK
|
|
|
|
```
|
2020-09-24 17:05:49 +00:00
|
|
|
OK: 12/12 Fail: 0/12 Skip: 0/12
|
2020-09-21 15:58:35 +00:00
|
|
|
## Slashing Protection DB - Interchange [Preset: mainnet]
|
|
|
|
```diff
|
2021-02-09 15:23:06 +00:00
|
|
|
+ Smoke test - Complete format - Invalid database is refused [Preset: mainnet] OK
|
2020-09-21 15:58:35 +00:00
|
|
|
+ Smoke test - Complete format [Preset: mainnet] OK
|
|
|
|
```
|
2021-02-09 15:23:06 +00:00
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
|
|
|
## Slashing Protection DB - v1 and v2 migration [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Minimal format migration [Preset: mainnet] OK
|
|
|
|
```
|
2020-09-21 15:58:35 +00:00
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
|
|
|
## Slashing Protection DB [Preset: mainnet]
|
|
|
|
```diff
|
2020-09-26 21:58:12 +00:00
|
|
|
+ Attestation ordering #1698 OK
|
2021-05-10 14:32:28 +00:00
|
|
|
+ Don't prune the very last attestation(s) even by mistake OK
|
|
|
|
+ Don't prune the very last block even by mistake OK
|
2020-09-21 15:58:35 +00:00
|
|
|
+ Empty database [Preset: mainnet] OK
|
2021-05-10 14:32:28 +00:00
|
|
|
+ Pruning attestations works OK
|
|
|
|
+ Pruning blocks works OK
|
2020-09-21 15:58:35 +00:00
|
|
|
+ SP for block proposal - backtracking append OK
|
|
|
|
+ SP for block proposal - linear append OK
|
|
|
|
+ SP for same epoch attestation target - linear append OK
|
|
|
|
+ SP for surrounded attestations OK
|
|
|
|
+ SP for surrounding attestations OK
|
2020-09-26 21:58:12 +00:00
|
|
|
+ Test valid attestation #1699 OK
|
2020-09-21 15:58:35 +00:00
|
|
|
```
|
2021-05-10 14:32:28 +00:00
|
|
|
OK: 12/12 Fail: 0/12 Skip: 0/12
|
2020-07-13 14:44:58 +00:00
|
|
|
## Spec datatypes
|
|
|
|
```diff
|
|
|
|
+ Graffiti bytes OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2020-03-10 04:24:33 +00:00
|
|
|
## Spec helpers
|
|
|
|
```diff
|
2021-09-29 13:02:34 +00:00
|
|
|
+ build_proof - BeaconState OK
|
2021-10-14 08:28:22 +00:00
|
|
|
+ get_branch_indices OK
|
|
|
|
+ get_helper_indices OK
|
|
|
|
+ get_path_indices OK
|
2020-03-10 04:24:33 +00:00
|
|
|
+ integer_squareroot OK
|
2021-12-10 15:56:26 +00:00
|
|
|
+ is_valid_merkle_branch OK
|
2021-10-14 08:28:22 +00:00
|
|
|
+ verify_merkle_multiproof OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2021-12-10 15:56:26 +00:00
|
|
|
OK: 7/7 Fail: 0/7 Skip: 0/7
|
2021-08-18 18:57:58 +00:00
|
|
|
## Specific field types
|
|
|
|
```diff
|
|
|
|
+ root update OK
|
|
|
|
+ roundtrip OK
|
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-08-30 01:00:37 +00:00
|
|
|
## Sync committee pool
|
|
|
|
```diff
|
|
|
|
+ Aggregating votes OK
|
|
|
|
+ An empty pool is safe to prune OK
|
|
|
|
+ An empty pool is safe to prune 2 OK
|
|
|
|
+ An empty pool is safe to use OK
|
|
|
|
```
|
|
|
|
OK: 4/4 Fail: 0/4 Skip: 0/4
|
2021-04-28 16:41:02 +00:00
|
|
|
## SyncManager test suite
|
|
|
|
```diff
|
2021-12-08 21:15:29 +00:00
|
|
|
+ [SyncQueue#Backward] Async unordered push test OK
|
|
|
|
+ [SyncQueue#Backward] Async unordered push with rewind test OK
|
|
|
|
+ [SyncQueue#Backward] Pass through established limits test OK
|
|
|
|
+ [SyncQueue#Backward] Smoke test OK
|
|
|
|
+ [SyncQueue#Backward] Start and finish slots equal OK
|
|
|
|
+ [SyncQueue#Backward] Two full requests success/fail OK
|
|
|
|
+ [SyncQueue#Backward] getRewindPoint() test OK
|
|
|
|
+ [SyncQueue#Forward] Async unordered push test OK
|
|
|
|
+ [SyncQueue#Forward] Async unordered push with rewind test OK
|
|
|
|
+ [SyncQueue#Forward] Pass through established limits test OK
|
|
|
|
+ [SyncQueue#Forward] Smoke test OK
|
|
|
|
+ [SyncQueue#Forward] Start and finish slots equal OK
|
|
|
|
+ [SyncQueue#Forward] Two full requests success/fail OK
|
|
|
|
+ [SyncQueue#Forward] getRewindPoint() test OK
|
2021-04-28 16:41:02 +00:00
|
|
|
+ [SyncQueue] checkResponse() test OK
|
|
|
|
+ [SyncQueue] contains() test OK
|
|
|
|
+ [SyncQueue] getLastNonEmptySlot() test OK
|
|
|
|
+ [SyncQueue] hasEndGap() test OK
|
|
|
|
```
|
2021-12-08 21:15:29 +00:00
|
|
|
OK: 18/18 Fail: 0/18 Skip: 0/18
|
2020-03-10 04:24:33 +00:00
|
|
|
## Zero signature sanity checks
|
|
|
|
```diff
|
|
|
|
+ SSZ serialization roundtrip of SignedBeaconBlockHeader OK
|
2021-07-28 20:36:23 +00:00
|
|
|
+ Zero signatures cannot be loaded into a BLS signature object OK
|
|
|
|
+ default initialization of signatures OK
|
2020-03-10 04:24:33 +00:00
|
|
|
```
|
2021-07-28 20:36:23 +00:00
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2020-03-10 04:24:33 +00:00
|
|
|
## [Unit - Spec - Block processing] Attestations [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Valid attestation OK
|
|
|
|
+ Valid attestation from previous epoch OK
|
|
|
|
```
|
2020-03-13 14:58:21 +00:00
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2020-03-10 04:24:33 +00:00
|
|
|
## [Unit - Spec - Block processing] Deposits [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Deposit at MAX_EFFECTIVE_BALANCE balance (32 ETH) OK
|
|
|
|
+ Deposit over MAX_EFFECTIVE_BALANCE balance (32 ETH) OK
|
|
|
|
+ Deposit under MAX_EFFECTIVE_BALANCE balance (32 ETH) OK
|
2020-07-08 12:36:03 +00:00
|
|
|
+ Invalid deposit at MAX_EFFECTIVE_BALANCE balance (32 ETH) OK
|
2020-03-10 04:24:33 +00:00
|
|
|
+ Validator top-up OK
|
|
|
|
```
|
2020-07-08 12:36:03 +00:00
|
|
|
OK: 5/5 Fail: 0/5 Skip: 0/5
|
2020-03-10 04:24:33 +00:00
|
|
|
## [Unit - Spec - Epoch processing] Justification and Finalization [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ Rule I - 234 finalization with enough support OK
|
|
|
|
+ Rule I - 234 finalization without support OK
|
|
|
|
+ Rule II - 23 finalization with enough support OK
|
|
|
|
+ Rule II - 23 finalization without support OK
|
|
|
|
+ Rule III - 123 finalization with enough support OK
|
|
|
|
+ Rule III - 123 finalization without support OK
|
|
|
|
+ Rule IV - 12 finalization with enough support OK
|
|
|
|
+ Rule IV - 12 finalization without support OK
|
|
|
|
```
|
|
|
|
OK: 8/8 Fail: 0/8 Skip: 0/8
|
2020-07-30 19:18:17 +00:00
|
|
|
## chain DAG finalization tests [Preset: mainnet]
|
|
|
|
```diff
|
2020-08-13 23:37:58 +00:00
|
|
|
+ init with gaps [Preset: mainnet] OK
|
2021-04-28 16:41:02 +00:00
|
|
|
+ orphaned epoch block [Preset: mainnet] OK
|
|
|
|
+ prune heads on finalization [Preset: mainnet] OK
|
2020-07-30 19:18:17 +00:00
|
|
|
```
|
2021-04-28 16:41:02 +00:00
|
|
|
OK: 3/3 Fail: 0/3 Skip: 0/3
|
2021-10-12 11:36:52 +00:00
|
|
|
## eth2.0-deposits-cli compatibility
|
|
|
|
```diff
|
|
|
|
+ restoring mnemonic with password OK
|
|
|
|
+ restoring mnemonic without password OK
|
|
|
|
```
|
|
|
|
OK: 2/2 Fail: 0/2 Skip: 0/2
|
2021-01-18 20:34:41 +00:00
|
|
|
## state diff tests [Preset: mainnet]
|
|
|
|
```diff
|
|
|
|
+ random slot differences [Preset: mainnet] OK
|
|
|
|
```
|
2021-03-11 05:39:04 +00:00
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2021-10-18 14:54:17 +00:00
|
|
|
## subnet tracker
|
|
|
|
```diff
|
|
|
|
+ should register stability subnets on attester duties OK
|
|
|
|
```
|
|
|
|
OK: 1/1 Fail: 0/1 Skip: 0/1
|
2020-03-10 04:24:33 +00:00
|
|
|
|
|
|
|
---TOTAL---
|
2022-01-03 12:22:56 +00:00
|
|
|
OK: 218/220 Fail: 0/220 Skip: 2/220
|