Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download all P2P data before announcing P2P ready. #6946

Closed
wants to merge 1 commit into from
Closed

Download all P2P data before announcing P2P ready. #6946

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 14, 2023

BsqBlocks were being downloaded and processed as soon as the initial P2P data response was received, however there can be subsequent P2P data batches received which contain information needed by the DAO. Resulting in DAO out of sync error for new users.

Solution is to announce P2P ready once all the data has been received.

Closes #6823


Another problem identified & not yet fixed:

If the BTC blockchain is still being sync'd (typical for a new user) the download of BsqBlocks stalls after the first batch. Resulting in "Synchronizing DAO" not completing until the user restarts.

@alejandrogarcia83
Copy link
Contributor

@alvasw @HenrikJannsen Could any of you ACK this PR? Thank you!

@alvasw
Copy link
Contributor

alvasw commented Nov 16, 2023

@HenrikJannsen should review this becaue he is more familiar with the P2P/DAO layer.

@HenrikJannsen
Copy link
Collaborator

HenrikJannsen commented Nov 18, 2023

The code change looks good to me but when testing with a fresh app i never got the DAO synced (stays in DAO synchronizing). This might be another bug, but we should figure it out before applying that.

@ghost ghost marked this pull request as draft November 19, 2023 02:24
@ghost ghost closed this Nov 20, 2023
This pull request was closed.
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.

Fresh client always prompted DAO out of sync after initial bootstrap.
3 participants