mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
cbc998ed93
* initial fork-choice refactor * Add fork_choice test for "no votes" * Initial test with voting: fix handling of unknown validators and parent blocks * Fix tiebreak of votes * Cleanup debugging traces * Complexify the vote test * fakeHash use the bigEndian repr of number + fix tiebreak for good * Stash changes: found critical bug in nimcrypto `==` and var openarray * Passing fork choice tests with varying votes * Add FFG fork choice scenario + fork choice to the test suite * Not sure why lmdb / rocksdb reappeared in rebase * Add sanity checks to .nimble file + integrate fork choice tests to the test DB and test timing * Cleanup debugging echos * nimcrypto fix https://github.com/status-im/nim-beacon-chain/pull/864 as been merged, remove TODO comment * Turn fork choice exception-free * Cleanup "result" to ensure early return is properly used * Add a comment on private/public error code vs Result * result -> results following https://github.com/status-im/nim-beacon-chain/pull/866 * Address comments: - raises: [Defect] doesn't work -> TODO - process_attestation cannot fail - try/except as expression pending Nim v1.2.0 - cleanup TODOs * re-enable all sanity checks * tag no raise for process_attestation * use raises defect everywhere in fork choice and fix process_attestation test
51 lines
1.6 KiB
Nim
51 lines
1.6 KiB
Nim
# beacon_chain
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
import ./testutil
|
|
|
|
import # Official constants
|
|
./official/test_fixture_const_sanity_check
|
|
|
|
import # Unit test
|
|
./test_attestation_pool,
|
|
./test_beacon_chain_db,
|
|
./test_beacon_node,
|
|
./test_beaconstate,
|
|
./test_block_pool,
|
|
./test_discovery_helpers,
|
|
./test_helpers,
|
|
./test_kvstore,
|
|
./test_mocking,
|
|
./test_kvstore_sqlite3,
|
|
./test_ssz,
|
|
./test_state_transition,
|
|
./test_sync_protocol,
|
|
# ./test_validator # Empty!
|
|
./test_zero_signature,
|
|
./test_peer_pool,
|
|
./test_sync_manager,
|
|
./test_honest_validator,
|
|
./test_interop,
|
|
./fork_choice/tests_fork_choice
|
|
|
|
import # Refactor state transition unit tests
|
|
# TODO re-enable when useful
|
|
# ./spec_block_processing/test_genesis,
|
|
# In mainnet these take 2 minutes and are empty TODOs
|
|
./spec_block_processing/test_process_deposits,
|
|
./spec_block_processing/test_process_attestation,
|
|
./spec_epoch_processing/test_process_justification_and_finalization
|
|
|
|
# TODO: json tests were removed
|
|
|
|
# import # Official fixtures that don't require SSZ parsing of invalid BLS signatures
|
|
# # https://github.com/status-im/nim-beacon-chain/issues/374
|
|
# ./official/test_fixture_shuffling,
|
|
# ./official/test_fixture_bls
|
|
|
|
summarizeLongTests("AllTests")
|