Skip to content

Fix hanging on start with existing consensus database (again)#202

Merged
chris124567 merged 1 commit intomasterfrom
christopher/fix-hanging-on-start-again
Apr 16, 2025
Merged

Fix hanging on start with existing consensus database (again)#202
chris124567 merged 1 commit intomasterfrom
christopher/fix-hanging-on-start-again

Conversation

@chris124567
Copy link
Copy Markdown
Member

@chris124567 chris124567 commented Apr 15, 2025

#195 reintroduced a bug that was fixed in #194, because we mistakenly call syncStore to try to index only the genesis block, but syncStore uses a loop that continues until the explorer is fully caught up. This PR changes that to use the chain managers and the explorer's store directly to add the genesis block. We also send a value to the reorgChan so that the goroutine starts indexing blocks instantly instead of waiting for another block to be mined or a reorg to happen.

@github-project-automation github-project-automation bot moved this to In Progress in Sia Apr 15, 2025
@chris124567 chris124567 merged commit a11b50c into master Apr 16, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Apr 16, 2025
@chris124567 chris124567 deleted the christopher/fix-hanging-on-start-again branch April 16, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants