nimbus-eth1/nimbus/p2p
Jordan Hrycaj 1eb79c34c6 Fixing Win64/CI unit test segfault
why:
  Previously, the function 'snapshot_desc.loadSnapshot()' contained the
  equivalent of 'eth.decode(@[],SnapshotData)' for some type 'SnapshotData'
  which should result in an exception of type 'RlpTypeMismatch'.

  Before mid October, this worked for all systems on the Github CI. Since
  then, a segfault message in the Github CI can be reproduced on all 64bit
  Windows wuns when running 'build/all_tests <id-of-test_txpool>' after the
  failed 'make test' directive (the latter one needs to be extended by
  '|| true'.)  This error cannot be reproduced on my local Win7/64 system
  with the same MSYS2 and gcc 11.2.0 compiler.

  The fix is, rather than catching an exception, to explicitly check the
  first argument of 'eth.decode(@[],SnapshotData)' and act if it is empty.

also:
  removed some obsolete {.inline.} annotations.
2022-01-22 08:26:57 +02:00
..
chain Fixing Win64/CI unit test segfault 2022-01-22 08:26:57 +02:00
clique Fixing Win64/CI unit test segfault 2022-01-22 08:26:57 +02:00
executor update ec_recover 2022-01-22 08:26:57 +02: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 Feature/implement poa processing (#748) 2021-07-14 16:13:27 +01:00
gaslimit.nim config: replace stdlib parseOpt with nim-confutils 2021-09-18 17:34:46 +07:00
validate.nim update ec_recover 2022-01-22 08:26:57 +02:00