nimbus-eth1/tests/all_tests.nim

59 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,
./test_aristo,
Aristo db update for short nodes key edge cases (#1887) * Aristo: Provide key-value list signature calculator detail: Simple wrappers around `Aristo` core functionality * Update new API for `CoreDb` details: + Renamed new API functions `contains()` => `hasKey()` or `hasPath()` which disables the `in` operator on non-boolean `contains()` functions + The functions `get()` and `fetch()` always return a not-found error if there is no item, available. The new functions `getOrEmpty()` and `mergeOrEmpty()` return an an empty `Blob` if there is no such key found. * Rewrite `core_apps.nim` using new API from `CoreDb` * Use `Aristo` functionality for calculating Merkle signatures details: For debugging, the `VerifyAristoForMerkleRootCalc` can be set so that `Aristo` results will be verified against the legacy versions. * Provide general interface for Merkle signing key-value tables details: Export `Aristo` wrappers * Activate `CoreDb` tests why: Now, API seems to be stable enough for general tests. * Update `toHex()` usage why: Byteutils' `toHex()` is superior to `toSeq.mapIt(it.toHex(2)).join` * Split `aristo_transcode` => `aristo_serialise` + `aristo_blobify` why: + Different modules for different purposes + `aristo_serialise`: RLP encoding/decoding + `aristo_blobify`: Aristo database encoding/decoding * Compacted representation of small nodes' links instead of Keccak hashes why: Ethereum MPTs use Keccak hashes as node links if the size of an RLP encoded node is at least 32 bytes. Otherwise, the RLP encoded node value is used as a pseudo node link (rather than a hash.) Such a node is nor stored on key-value database. Rather the RLP encoded node value is stored instead of a lode link in a parent node instead. Only for the root hash, the top level node is always referred to by the hash. This feature needed an abstraction of the `HashKey` object which is now either a hash or a blob of length at most 31 bytes. This leaves two ways of representing an empty/void `HashKey` type, either as an empty blob of zero length, or the hash of an empty blob. * Update `CoreDb` interface (mainly reducing logger noise) * Fix copyright years (to make `Lint` happy)
2023-11-08 12:18:32 +00:00
./test_coredb,
./test_sync_snap,
./test_rocksdb_timing,
./test_jwt_auth,
./test_gas_meter,
./test_memory,
./test_stack,
./test_genesis,
./test_precompiles,
./test_generalstate_json,
./test_tracer_json,
./test_persistblock_json,
./test_rpc,
./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,
./test_forkid,
2020-05-05 13:46:17 +00:00
../stateless/test_witness_keys,
../stateless/test_block_witness,
2020-11-19 06:56:22 +00:00
../stateless/test_witness_json,
../stateless/test_witness_verification,
2021-04-24 04:01:56 +00:00
./test_misc,
./test_graphql,
./test_clique,
./test_pow,
./test_configuration,
./test_keyed_queue_rlp,
./test_txpool,
./test_merge,
./test_eip4844,
./test_beacon/test_skeleton,
./test_overflow,
./test_getproof_json,
./test_rpc_experimental_json,
./test_persistblock_witness_json