nimbus-eth1/nimbus/p2p
Jordan Hrycaj a49a812879
Jordan/fix some failing nohive tests (#727)
* continue importing rlp blocks

why:
  a chain of blocks to be imported might have legit blocks
  after rejected blocks

details:
  import loop only stops if the import list is exhausted or if there
  was a decoding error. this adds another four to the count of successful
  no-hive tests.

* verify DAO marked extra data field in block header

why:
  was ignored, scores another two no-hive tests

* verify minimum required difficulty in header validator

why:
  two more nohive tests to succeed

details:
  * subsumed extended header tests under validateKinship() and renamed it
    more appropriately validateHeaderAndKinship()
  * enhanced readability of p2p/chain.nim
  * cleaned up test_blockchain_json.nim

* verify positive gasUsed unless no transactions

why:
  solves another to nohive tests

details:
  straightened test_blockchain_json chech so there is no unconditional
  rejection anymore (based on the input test  scenario)
2021-06-24 16:29:21 +01:00
..
clique after rebase fix (#715) 2021-06-17 09:17:49 +01:00
validate use general lru_cache for EpochHashCache 2021-05-24 07:57:21 +01:00
chain.nim Jordan/fix some failing nohive tests (#727) 2021-06-24 16:29:21 +01:00
clique.nim all snapshot unit tests succeed 2021-06-17 08:03:57 +01:00
dao.nim replace state_db with accounts_cache 2020-05-30 10:14:59 +07:00
executor.nim Transaction: Use same log level for all block rejection causes 2021-06-08 18:07:50 +01:00
validate.nim Jordan/fix some failing nohive tests (#727) 2021-06-24 16:29:21 +01:00