0f430c70fd
* 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> |
||
---|---|---|
.. | ||
amphora | ||
bootstrap | ||
customgenesis | ||
db | ||
fixtures | ||
graphql | ||
keystore | ||
merge | ||
replay | ||
rpc | ||
test_aristo | ||
test_beacon | ||
test_coredb | ||
test_jwt_auth | ||
test_rocksdb_timing | ||
test_sync_snap | ||
test_txpool | ||
README.md | ||
all_tests.nim | ||
all_tests_macro.nim | ||
asynctest.nim | ||
evm_tests.nim | ||
macro_assembler.nim | ||
nim.cfg | ||
persistBlockTestGen.nim | ||
test_accounts_cache.nim | ||
test_allowed_to_fail.nim | ||
test_aristo.nim | ||
test_block_fixture.nim | ||
test_blockchain_json.nim | ||
test_code_stream.nim | ||
test_config.nim | ||
test_configuration.nim | ||
test_coredb.nim | ||
test_difficulty.nim | ||
test_eip4844.nim | ||
test_filters.nim | ||
test_forkid.nim | ||
test_gas_meter.nim | ||
test_generalstate_json.nim | ||
test_genesis.nim | ||
test_getproof_json.nim | ||
test_graphql.nim | ||
test_helpers.nim | ||
test_jwt_auth.nim | ||
test_keyed_queue_rlp.nim | ||
test_memory.nim | ||
test_merge.nim | ||
test_misc.nim | ||
test_op_arith.nim | ||
test_op_bit.nim | ||
test_op_custom.nim | ||
test_op_env.nim | ||
test_op_memory.nim | ||
test_op_misc.nim | ||
test_overflow.nim | ||
test_persistblock_json.nim | ||
test_persistblock_witness_json.nim | ||
test_pow.nim | ||
test_precompiles.nim | ||
test_rocksdb_timing.nim | ||
test_rpc.nim | ||
test_rpc_experimental_json.nim | ||
test_rpc_getproofs_track_state_changes.nim | ||
test_stack.nim | ||
test_state_db.nim | ||
test_sync_snap.nim | ||
test_tools_build.nim | ||
test_tracer_json.nim | ||
test_transaction_json.nim | ||
test_txpool.nim | ||
test_txpool2.nim | ||
test_wire_protocol.nim | ||
tracerTestGen.nim |
README.md
tests
TODO: more GeneralStateTest fixtures!