nimbus-eth1/nimbus/sync/beacon/worker
Jordan Hrycaj dd888deadb
Fc module various base tree admin updates (#2895)
* Cosmetics, update log and exception messages

* Update `FC` base tree updater `updateBase()`

why:
  Correct `forkJunction` of canonical cursor head record. When moving
  the `base`, this field would be below `base` unless updated.

* Fix `FC` chain selector `findCanonicalHead()`

why:
  Given a sample ref `hash` the function searched for the unique chain
  containing the block header referenced by `hash`.

  Unfortunately, when searching down the ancestry lineage, the function
  did not necessarily stop an the end of the sub-chain. Rather it
  continued with the parent chain without noticing. So returning the
  wrong result.

* When calculating new a base it must reside on cursor arc (or leg.)

why:
  The finalised block argument (that will eventually be the new base)
  might be moved further down the cursor arc if it is too close to the
  cursor head (typically smaller than 128 blocks.)

  So the finalised block selection is shifted down he cursor arc. And
  it might happen that the cursor arc itself is too small and one would
  end up at a parent cursor arc. This is rejected.

* Not starting a new cursor arc with a block already on another arc

why:
  This leads to an inconsistent set of cursor arcs which are supposed to
  be mutually disjunct.

* Tighten condition: A block that is not on the base tree must be on the DB

* One less TODO item
2024-12-02 08:25:58 +00:00
..
blocks_staged Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
headers_staged Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
start_stop Fc module various base tree admin updates (#2895) 2024-12-02 08:25:58 +00:00
update Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
blocks_staged.nim Fc module various base tree admin updates (#2895) 2024-12-02 08:25:58 +00:00
blocks_unproc.nim Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
db.nim Beacon sync fix overlapping block list import (#2866) 2024-11-22 13:23:53 +00:00
headers_staged.nim Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
headers_unproc.nim Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00
helpers.nim Beacon sync updates tbc (#2818) 2024-11-01 19:18:41 +00:00
start_stop.nim Beacon sync fix overlapping block list import (#2866) 2024-11-22 13:23:53 +00:00
update.nim Beacon sync fix overlapping block list import (#2866) 2024-11-22 13:23:53 +00:00