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

Fix: readd old algorithm to fix progress for SPV nodes #1137

Merged
merged 1 commit into from
May 11, 2023

Conversation

bolaum
Copy link
Contributor

@bolaum bolaum commented Feb 1, 2023

As discussed in #1110 , there was a problem with the sync progress for SPV nodes. This PR readds the old algorithm just for SPV nodes.

@masterchief164
Copy link
Collaborator

masterchief164 commented May 11, 2023

This PR should work fine for now. Although we will have to fix the getProgress function to use block count s and avg block generation rate to estimate the progress.
Edit: On second thoughts the improvement will be negligible that way. It's fine just the way it is for now.

Copy link
Collaborator

@masterchief164 masterchief164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack! This PR looks good. We don't need to estimate the progress count using the transaction count for SPV mode.

@pinheadmz pinheadmz merged commit 304d5e8 into bcoin-org:master May 11, 2023
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.

3 participants