nimbus-eth1/nimbus/p2p/clique/snapshot
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
..
ballot.nim Fearture/poa clique tuning (#765) 2021-07-30 15:06:51 +01:00
lru_snaps.nim Renamed source file clique_utils => clique_helpers (#762) 2021-07-21 14:31:52 +01:00
snapshot_apply.nim #768 Moved/re-implemented ecRecover() from Clique sources to utils/ec_recover 2021-08-05 12:27:10 +07:00
snapshot_desc.nim Fixing Win64/CI unit test segfault 2022-01-22 08:26:57 +02:00