nimbus-eth1/tests
Jordan Hrycaj 0a3bc102eb
Pre functional snap to full sync (#1546)
* Update sync scheduler pool mode

why:
  The pool mode allows to loop over active peers one after another. This
  is ideal for soft re-starting peers. As this is a two tier experience
  (start/stop, setup/release) the loop must be run twice. This is
  controlled by a more rigid re-definition of how to use the `poolMode`
  flag.

* Mitigate RLP serialiser deficiency

why:
  Currently, serialising the `BlockBody` in not conevrtible and need
  to be checked in the `eth` module. Currently a local fix for the
  wire protocol applies. Unit tests will stay (after this local solution
  will have been removed.)

* Code cosmetics and massage

details:
  Main part is `types.toStr()` as a unified function for logging block
  numbers.

* Allow to use a logical genesis replacement (start of history)

why:
  Snap sync will set up an arbitrary pivot at a block number different
  from zero. In fact, the higher the block number the better.

details:
  A non-genesis start of history will currently only affect the score
  values which were derived from the difficulty.

* Provide function to store the snap pivot block header in chain db

why:
  Together with the start of history facility, this allows to proceed
  with full syncing once snap has finished.

details:
  Snap db storage was switched from a sub-tables to the flat chain db.

* Provide database completeness and sanity checker

details:
  For debugging on smaller databases, only

* Implement snap -> full sync switch
2023-04-14 23:28:57 +01: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
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 Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01:00
test_txpool fix macro assembler and reenable disabled tests 2023-03-22 18:18:37 +07:00
README.md
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
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 Pre functional snap to full sync (#1546) 2023-04-14 23:28:57 +01: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!