nimbus-eth1/tests/customgenesis
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
..
berlin2000.json fixes crappy custom genesis and chain config parser 2021-05-13 16:04:08 +07:00
calaveras.json config: fix config file parser 2021-08-06 07:30:53 +07:00
chainid1.json config: fix new config based on input from jamie and zahary 2021-09-18 17:34:51 +07:00
chainid7.json fixes crappy custom genesis and chain config parser 2021-05-13 16:04:08 +07:00
kintsugi.json Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
noconfig.json fixes crappy custom genesis and chain config parser 2021-05-13 16:04:08 +07:00