nimbus-eth1/tests
Jordan Hrycaj fe3a6d67c6
Prepare snap server client test scenario cont2 (#1487)
* Clean up some function prototypes

why:
  Simplify polymorphic prototype variances for easier maintenance.

* Fix fringe condition crash when importing bogus RLP node

why:
  Accessing non-list RLP entry as a list causes `Defect`

* Fix left boundary proof at range extractor

why:
  Was insufficient. The main problem was that there was no unit test for
  the validity of the generated left boundary.

* Handle incomplete left boundary proofs early

why:
  Attempt to do it later leads to overly complex code in order to prevent
  looping when the same peer repeats to send the same incomplete proof.

  Contrary, gaps in the leaf sequence can be handled gracefully with
  registering the gaps

* Implement a manual pivot setup mechanism for snap sync

why:
  For a test scenario it is convenient to set the pivot to something
  lower than the beacon header from the consensus layer. This does not
  need rely on any RPC mechanism.

details:
  The file containing the pivot specs is specified by the
  `--sync-ctrl-file` option. It is regularly parsed for updates.

* Fix calculation error

why:
  Prevent from calculating negative square root
2023-03-07 14:23:22 +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 bump eth_tests 2023-01-14 15:56:08 +07: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 cont1 (#1485) 2023-03-03 20:01:59 +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 Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +00:00
test_txpool fix txpool: using consensus rule to prepare header 2022-12-06 16:43:00 +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 Bump Nim to 1.6 and resolve the related issues (#1445) 2023-01-26 13:37:19 +01:00
asynctest.nim replace all unittest usage with unittest2 2021-06-21 20:30:01 +07:00
evm_tests.nim Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
macro_assembler.nim Bump submodules and fix related issues (#1448) 2023-01-27 15:57:48 +01: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 Silence compiler gossip after nim upgrade cont1 (#1455) 2023-01-31 01:32:17 +00: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 Time based forking (#1465) 2023-02-16 12:40:07 +01: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 reduce code duplication in multiple test runners 2023-01-13 13:04:55 +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 Time based forking (#1465) 2023-02-16 12:40:07 +01: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 Bump Nim to 1.6 and resolve the related issues (#1445) 2023-01-26 13:37:19 +01: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 evm: fix premature position truncation of byte op 2023-02-13 21:20:52 +07:00
test_op_bit.nim make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +07:00
test_op_custom.nim Reduce Nim 1.6 compiler warnings & hints 2023-01-31 13:38:08 +01:00
test_op_env.nim implement better hardfork management 2022-12-02 13:51:42 +07:00
test_op_memory.nim make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +07:00
test_op_memory_lazy.nim Added basic async capabilities for vm2. (#1260) 2022-11-01 11:35:46 -04:00
test_op_misc.nim make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +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 Prepare snap server client test scenario cont2 (#1487) 2023-03-07 14:23:22 +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 persistHeaderToDb, allow POS block header to be canonical 2022-12-10 09:02:30 +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!