nimbus-eth1/tests/all_tests.nim

52 lines
1.8 KiB
Nim
Raw Normal View History

# Nimbus
# Copyright (c) 2018-2024 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ./all_tests_macro
2019-09-21 05:45:23 +00:00
2020-07-21 06:15:06 +00:00
{. warning[UnusedImport]:off .}
2019-09-21 05:45:23 +00:00
cliBuilder:
import ./test_code_stream,
#./test_accounts_cache, -- does not compile
2024-06-07 02:01:45 +00:00
./test_jwt_auth,
./test_gas_meter,
./test_memory,
./test_stack,
./test_genesis,
2024-06-07 02:01:45 +00:00
./test_precompiles,
Aristo avoid storage trie update race conditions (#2251) * Update TDD suite logger output format choices why: New format is not practical for TDD as it just dumps data across a wide range (considerably larder than 80 columns.) So the new format can be turned on by function argument. * Update unit tests samples configuration why: Slightly changed the way to find the `era1` directory * Remove compiler warnings (fix deprecated expressions and phrases) * Update `Aristo` debugging tools * Always update the `storageID` field of account leaf vertices why: Storage tries are weekly linked to an account leaf object in that the `storageID` field is updated by the application. Previously, `Aristo` verified that leaf objects make sense when passed to the database. As a consequence * the database was inconsistent for a short while * the burden for correctness was all on the application which led to delayed error handling which is hard to debug. So `Aristo` will internally update the account leaf objects so that there are no race conditions due to the storage trie handling * Aristo: Let `stow()`/`persist()` bail out unless there is a `VertexID(1)` why: The journal and filter logic depends on the hash of the `VertexID(1)` which is commonly known as the state root. This implies that all changes to the database are somehow related to that. * Make sure that a `Ledger` account does not overwrite the storage trie reference why: Due to the abstraction of a sub-trie (now referred to as column with a hash describing its state) there was a weakness in the `Aristo` handler where an account leaf could be overwritten though changing the validity of the database. This has been changed and the database will now reject such changes. This patch fixes the behaviour on the application layer. In particular, the column handle returned by the `CoreDb` needs to be updated by the `Aristo` database state. This mitigates the problem that a storage trie might have vanished or re-apperaed with a different vertex ID. * Fix sub-trie deletion test why: Was originally hinged on `VertexID(1)` which cannot be wholesale deleted anymore after the last Aristo update. Also, running with `VertexID(2)` needs an artificial `VertexID(1)` for making `stow()` or `persist()` work. * Cosmetics * Activate `test_generalstate_json` * Temporarily `deactivate test_tracer_json` * Fix copyright header --------- Co-authored-by: jordan <jordan@dry.pudding> Co-authored-by: Jacek Sieka <jacek@status.im>
2024-05-30 17:48:38 +00:00
./test_generalstate_json,
2024-06-08 11:36:51 +00:00
./test_tracer_json,
#./test_persistblock_json, -- fails
#./test_rpc, -- fails
./test_filters,
./test_op_arith,
./test_op_bit,
./test_op_env,
./test_op_memory,
./test_op_misc,
./test_op_custom,
./test_state_db,
./test_difficulty,
./test_transaction_json,
#./test_blockchain_json, -- fails
./test_forkid,
./test_multi_keys,
2021-04-24 04:01:56 +00:00
./test_misc,
#./test_graphql, -- fails
./test_pow,
./test_configuration,
#./test_txpool, -- fails
./test_txpool2,
#./test_merge, -- fails
./test_eip4844,
./test_beacon/test_skeleton,
2024-06-07 02:01:45 +00:00
./test_overflow,
#./test_getproof_json, -- fails
#./test_rpc_experimental_json, -- fails
./test_aristo,
./test_coredb