Skip to content

node: keep the mainchain connection alive - #149

Open
octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-09-05-mainchain-task-recovery
Open

octobocto wants to merge 1 commit into
LayerTwo-Labs:masterfrom
octobocto:2026-09-05-mainchain-task-recovery

Conversation

@octobocto

@octobocto octobocto commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Four faults each left the node without a mainchain connection, and it accepted no peer until a restart. The disconnect handler read the removed block as its own parent, so a mainchain reorg killed the task with InvalidMainchainParent; MainchainTask::run ended for good when the gRPC event stream closed, and the net task died with the request channel; mainchain_ancestors_rev read a height from main_block_hash_to_height, which an archive from before 7abd8ae holds one too big; and a peer connection ended while the mainchain tip was unset, because is_main_descendant asked for the height of the all-zeros hash. App::new still returns VerifyMainchainServices at start, because main.rs opens the GUI on that error on purpose.

@octobocto
octobocto force-pushed the 2026-09-05-mainchain-task-recovery branch 2 times, most recently from 452779f to 3484928 Compare September 5, 2026 06:26
@octobocto
octobocto force-pushed the 2026-09-05-mainchain-task-recovery branch from 3484928 to c8b7fc2 Compare September 27, 2026 14:26
@octobocto octobocto changed the title node: recover the mainchain task node: disconnect the mainchain tip to its parent Sep 27, 2026
@octobocto
octobocto force-pushed the 2026-09-05-mainchain-task-recovery branch 2 times, most recently from 2c51203 to 6cc7813 Compare September 27, 2026 15:43
@octobocto octobocto changed the title node: disconnect the mainchain tip to its parent node: keep the mainchain connection alive Sep 27, 2026
@octobocto
octobocto force-pushed the 2026-09-05-mainchain-task-recovery branch from 6cc7813 to ebad83e Compare September 27, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant