nimbus-eth1/nimbus/sync
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
..
beacon Fc module various base tree admin updates (#2895) 2024-12-02 08:25:58 +00:00
handlers Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
protocol eth: bump to devp2p v5 (#2837) 2024-11-08 10:24:35 +01:00
beacon.nim Beacon sync docu todo and async prototype update v2 (#2832) 2024-11-05 11:39:45 +00:00
handlers.nim Culling legacy DB and accounts cache (#2197) 2024-05-20 10:17:51 +00:00
peers.nim Slightly change the static peer manager lookup behaviour (#1484) 2023-03-06 09:22:07 +00:00
protocol.nim Remove eth/66 and eth/67 wire protocol (#2238) 2024-05-29 09:20:25 +02:00
sync_desc.nim Beacon sync updates tbc (#2818) 2024-11-01 19:18:41 +00:00
sync_sched.nim Beacon sync update multi exe heads aware (#2861) 2024-11-21 16:32:47 +00:00