nimbus-eth1/nimbus/p2p
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
..
chain Jordan/custom network (#962) 2022-02-11 16:28:39 +00:00
clique Initial implementation of the merge spec 2022-01-24 09:44:39 +02:00
executor EIP-3675: disable reward for coinbase and uncles miner 2022-02-08 20:23:41 +07:00
blockchain_sync.nim Sync fix: `GetBlockBodies` logic preventing sync, dropping peers 2021-10-19 10:20:26 +01:00
chain.nim Feature/implement poa processing (#748) 2021-07-14 16:13:27 +01:00
clique.nim clique: connect period and epoch from chain_config to engine 2021-08-11 17:42:41 +07:00
dao.nim replace state_db with accounts_cache 2020-05-30 10:14:59 +07:00
executor.nim TxPool implementation 2022-01-22 08:26:57 +02:00
gaslimit.nim Initial implementation of the merge spec 2022-01-24 09:44:39 +02:00
validate.nim EIP-3607: Reject transactions from senders with deployed code 2022-02-10 15:48:18 +07:00