215e9856d3
* 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. |
||
---|---|---|
.. | ||
amphora | ||
bootstrap | ||
customgenesis | ||
fixtures | ||
graphql | ||
keystore | ||
replay | ||
rpcclient | ||
test_clique | ||
test_pow | ||
test_txpool | ||
README.md | ||
all_tests.nim | ||
asynctest.nim | ||
macro_assembler.nim | ||
nim.cfg | ||
persistBlockTestGen.nim | ||
test_accounts_cache.nim | ||
test_allowed_to_fail.nim | ||
test_blockchain_json.nim | ||
test_clique.nim | ||
test_code_stream.nim | ||
test_config.nim | ||
test_configuration.nim | ||
test_custom_network.nim | ||
test_difficulty.nim | ||
test_forkid.nim | ||
test_gas_meter.nim | ||
test_generalstate_json.nim | ||
test_genesis.nim | ||
test_graphql.nim | ||
test_helpers.nim | ||
test_keyed_queue_rlp.nim | ||
test_lru_cache.nim | ||
test_memory.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_persistblock_json.nim | ||
test_pow.nim | ||
test_precompiles.nim | ||
test_rpc.nim | ||
test_stack.nim | ||
test_state_db.nim | ||
test_tools_build.nim | ||
test_tracer_json.nim | ||
test_transaction_json.nim | ||
test_txpool.nim | ||
tracerTestGen.nim |
README.md
tests
TODO: more GeneralStateTest fixtures!