Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Reorg best chain on finality if diverged #1442

@gnunicorn

Description

@gnunicorn

If we are told a new block is finalized, that isn't a direct ancestor of what we currently considered the best chain, we need to look back to find the best common ancestor and reorganize our chain accordingly.

Starting point:

if route_from_best.common_block().hash != block {

Metadata

Metadata

Assignees

Labels

Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions