nimbus-eth1/nimbus/core/chain
Jordan Hrycaj 7d41a992e6
Update fork choice import for resuming after stop (#2746)
* Update `ForkedChainRef` constructor

why:
  Initialisation is based on the canonical head which is always zero
  after resuming a stopped `ForkedChainRef` based import.

* Update new-base calculator

why:
  There is some ambiguous code which might not do what the comment
  implies. In short, an unsigned condition like `2u - 3u < 1u => false`
  is coded where the comment suggests that `2 - 3 < 1 => true` is meant.

  This patch fixes notorious crashes when resuming import after a stop.
2024-10-17 12:14:09 +00:00
..
chain_desc.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
forked_chain.nim Update fork choice import for resuming after stop (#2746) 2024-10-17 12:14:09 +00:00
persist_blocks.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00