nimbus-eth1/tests
Jordan Hrycaj c01045c246
Update snap client account healing (#1521)
* Update nearby/neighbour leaf nodes finder

details:
  Update return error codes so that in the case that there is no more
  leaf node beyond the search direction, the particular error code
  `NearbyBeyondRange` is returned.

* Compile largest interval range containing only this leaf point

why:
  Will be needed in snap sync for adding single leaf nodes to the range
  of already allocated nodes.

* Reorg `hexary_inspect.nim`

why:
 Merged the nodes collecting algorithm for persistent and in-memory
 into a single generic function `hexary_inspect.inspectTrieImpl()`

* Update fetching accounts range failure handling in `rangeFetchAccounts()`

why:
  Rejected response leads now to fetching for another account range. Only
  repeated failures (or all done) terminate the algorithm.

* Update accounts healing

why:
+ Fixed looping over a bogus node response that could not inserted into
  the database. As a solution, these nodes are locally registered and not
  asked for in this download cycle.
+ Sub-optimal handling of interval range for a healed account leaf node.
  Now the maximal range interval containing this node is registered as
  processed which leafs to de-fragementation of the processed (and
  unprocessed) range list(s). So *gap* ranges which are known not to
  cover any account leaf node are not asked for on the network, anymore.
+ Sporadically remove empty interval ranges (if any)

* Update logging, better variable names
2023-03-25 10:44:48 +00:00
..
amphora Migrate to Engine API spec version v1.0.0-alpha.5; More progress towards working M1 2022-01-25 12:52:50 +02:00
bootstrap config: fix new config based on input from jamie and zahary 2021-09-18 17:34:51 +07:00
customgenesis add beacon sync skeleton test 2022-09-17 09:08:55 +07:00
db Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
fixtures Bumped the tests. Withdrawals tests pass now. 2023-03-18 05:17:07 -04:00
graphql implement better hardfork management 2022-12-02 13:51:42 +07:00
keystore implement more eth rpc and keystore management 2020-07-23 14:54:32 +07:00
merge reenable testEngineAPI in test_merge 2022-03-17 12:54:04 +07:00
replay Prepare snap server client test scenario cont4 (#1507) 2023-03-17 14:46:50 +00:00
rpcclient Add eth_chainId rpc to Nimbus and Fluffy (#1219) 2022-09-10 15:05:32 +02:00
test_clique bump submodules to reduce compiler warnings 2023-02-22 12:21:41 +07:00
test_jwt_auth Enable JWT authentication for websockets (#1039) 2022-04-06 15:11:13 +01:00
test_sync_snap Update snap client account healing (#1521) 2023-03-25 10:44:48 +00:00
test_txpool fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
README.md integrate GeneralStateTest runner into CI with 775 running tests (#153) 2018-09-19 16:46:14 +00:00
all_tests.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
asynctest.nim replace all unittest usage with unittest2 2021-06-21 20:30:01 +07:00
evm_tests.nim Recreating some of the old stateless code that had bitrotted. (#1493) 2023-03-10 17:16:42 -05:00
macro_assembler.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
nim.cfg unittest2 (parallelism disabled) 2019-10-31 06:17:01 +01:00
persistBlockTestGen.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_accounts_cache.nim Refactored to introduce distinct types AccountsTrie and StorageTrie. (#1490) 2023-03-10 13:42:37 -05:00
test_allowed_to_fail.nim Tests: Add loopMul.json and loopExp.json to skipped, slow tests 2021-08-03 15:03:05 +01:00
test_block_fixture.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
test_blockchain_json.nim align accounts cache with EIP158/161 2023-03-18 18:13:06 +07:00
test_clique.nim Bump Nim to 1.6 and resolve the related issues (#1445) 2023-01-26 13:37:19 +01:00
test_code_stream.nim merge vm_memory, vm_interpreter, and vm_utils_numeric => vm_internals 2021-03-31 18:15:27 +01:00
test_config.nim align accounts cache with EIP158/161 2023-03-18 18:13:06 +07:00
test_configuration.nim fix default --key-store location if --data-dir is custom 2022-12-22 11:17:04 +07:00
test_custom_network.nim Time based forking (#1465) 2023-02-16 12:40:07 +01:00
test_difficulty.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_filters.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_forkid.nim Time based forking (#1465) 2023-02-16 12:40:07 +01:00
test_gas_meter.nim merge vm_memory, vm_interpreter, and vm_utils_numeric => vm_internals 2021-03-31 18:15:27 +01:00
test_generalstate_json.nim refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
test_genesis.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_graphql.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_helpers.nim refactor touched accounts, selfdestruct, and log 2023-03-21 08:14:06 +07:00
test_jwt_auth.nim Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00:00
test_keyed_queue_rlp.nim update ec_recover 2022-01-22 08:26:57 +02:00
test_memory.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_merge.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_misc.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_op_arith.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_op_bit.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_op_custom.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_op_env.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_op_memory.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_op_misc.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_persistblock_json.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_pow.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_precompiles.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_rpc.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_skeleton.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_stack.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_state_db.nim eth: adapt to smaller eth_types (#1210) 2022-09-03 20:15:35 +02:00
test_sync_snap.nim Update snap server client test scenario (#1518) 2023-03-22 20:11:49 +00:00
test_tools_build.nim disable NewBlockHashes and NewBlock of eth wire handler after POS transition 2022-11-14 16:17:34 +07:00
test_tracer_json.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_transaction_json.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_txpool.nim cleanup unused txpool unused code 2022-12-09 11:26:14 +07:00
test_txpool2.nim fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
test_wire_protocol.nim initial wire protocol transformation 2022-10-15 19:48:21 +07:00
tracerTestGen.nim implement better hardfork management 2022-12-02 13:51:42 +07:00

README.md

tests

TODO: more GeneralStateTest fixtures!