dd888deadb
* 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 |
||
---|---|---|
.. | ||
beacon | ||
handlers | ||
protocol | ||
beacon.nim | ||
handlers.nim | ||
peers.nim | ||
protocol.nim | ||
sync_desc.nim | ||
sync_sched.nim |