nimbus-eth1/tests
Jordan Hrycaj 215e9856d3
Jordan/custom network (#962)
* Rearrange/rename test_kintsugu => test_custom_network

why:
  Debug, fix and test more general problems related to running
  nimbus on a custom network.

* Update UInt265/Json parser for --custom-network command line option

why:
  As found out with the Kintsugi configuration, block number and balance
  have the same Nim type which led to misunderstandings. This patch makes
  sure that UInt265 encoded string values "0x11" decodes to 17, and "b"
  and "11" to 11.

* Refactored genesis.toBlock() => genesis.toBlockHeader()

why:
  The function toBlock(g,db) may return different results depending on
  whether the db descriptor argument is nil, or initialised. This is due
  to the db.config data sub-descriptor which may give various outcomes
  for the baseFee field of the genesis header.

  Also, the version where db is non-nil initialised is used internally
  only. So the public rewrite toBlockHeader() that replaces the toBlock()
  function expects a full set of NetworkParams.

* update comments

* Rename toBlockHeader() => toGenesisHeader()

why:
  Polymorphic prototype used for BaseChainDB or NetworkParams argument.
  With a BaseChainDB descriptor argument, the name shall imply that the
  header is generated from the config fields rather than fetched from
  the database.

* Added command line option --static-peers-file

why:
  Handy feature to keep peer nodes in a file, similar to the
  --bootstrap-file option.
2022-02-11 16:28:39 +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 Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
fixtures bump ethereum tests 2022-02-10 15:48:26 +07:00
graphql unify evm call for both json-rpc and graphql 2021-10-31 12:24:40 +07:00
keystore implement more eth rpc and keystore management 2020-07-23 14:54:32 +07:00
replay Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
rpcclient replace all unittest usage with unittest2 2021-06-21 20:30:01 +07:00
test_clique Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
test_pow Jordan/pow cache management (#888) 2021-12-10 08:49:57 +00:00
test_txpool Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
README.md
all_tests.nim Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
asynctest.nim replace all unittest usage with unittest2 2021-06-21 20:30:01 +07:00
macro_assembler.nim EIP-4399 'RANDOM' opcode tests 2022-02-05 16:17:41 +07:00
nim.cfg
persistBlockTestGen.nim config: replace stdlib parseOpt with nim-confutils 2021-09-18 17:34:46 +07:00
test_accounts_cache.nim Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +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_blockchain_json.nim Initial implementation of the merge spec 2022-01-24 09:44:39 +02:00
test_clique.nim Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00: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 EVM: Remove `vm_types2` everywhere, use common forks list instead 2021-06-08 15:36:31 +01:00
test_configuration.nim Initial implementation of the merge spec 2022-01-24 09:44:39 +02:00
test_custom_network.nim Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
test_difficulty.nim config: fix new config based on input from jamie and zahary 2021-09-18 17:34:51 +07:00
test_forkid.nim Arrow Glacier fork 2021-12-10 13:40:51 +00: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 Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
test_genesis.nim Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
test_graphql.nim setup nimbus tx pool for app wide usage 2022-01-25 11:38:49 +07:00
test_helpers.nim fix test_helper: able to parse overflow tx value 2022-02-10 15:48:38 +07:00
test_keyed_queue_rlp.nim update ec_recover 2022-01-22 08:26:57 +02:00
test_lru_cache.nim Feature/implement poa processing (#748) 2021-07-14 16:13:27 +01:00
test_memory.nim merge vm_memory, vm_interpreter, and vm_utils_numeric => vm_internals 2021-03-31 18:15:27 +01:00
test_misc.nim config: replace stdlib parseOpt with nim-confutils 2021-09-18 17:34:46 +07:00
test_op_arith.nim make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +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 make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +07:00
test_op_env.nim fix EIP-4399 'random' opcode 2022-02-08 20:23:40 +07:00
test_op_memory.nim make macro_assembler to use the same testEvmCall 2021-10-14 15:10:12 +07: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 config: rearrange getConfiguration usage 2021-09-08 08:07:10 +07:00
test_pow.nim Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
test_precompiles.nim Redesign of BaseVMState descriptor (#923) 2022-01-18 16:19:32 +00:00
test_rpc.nim Migrate to Engine API spec version v1.0.0-alpha.5; More progress towards working M1 2022-01-25 12:52:50 +02:00
test_stack.nim merge vm_memory, vm_interpreter, and vm_utils_numeric => vm_internals 2021-03-31 18:15:27 +01:00
test_state_db.nim access list implementation 2021-01-11 14:54:55 +07:00
test_tools_build.nim drop PublicNetwork enum usage and replace it with NetworkId 2021-05-20 14:04:16 +07:00
test_tracer_json.nim reduce unused import warnings 2020-04-15 19:05:57 +07:00
test_transaction_json.nim fixes test codes to deal with eth_tests submodule 2021-01-06 17:02:19 +07:00
test_txpool.nim TxPool implementation 2022-01-22 08:26:57 +02:00
tracerTestGen.nim config: fix new config based on input from jamie and zahary 2021-09-18 17:34:51 +07:00

README.md

tests

TODO: more GeneralStateTest fixtures!