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

multi: Use single latest checkpoint. #2763

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

rstaudt2
Copy link
Member

@rstaudt2 rstaudt2 commented Oct 12, 2021

Rebased on #2762.

This updates the blockchain checkpoints logic to use a single latest checkpoint rather than multiple checkpoints. The intermediate checkpoints are no longer necessary because headers first syncing was introduced, which discovers the most recent checkpoint before block syncing even starts.

@davecgh davecgh added this to the 1.7.0 milestone Oct 13, 2021
blockchain/checkpoints.go Outdated Show resolved Hide resolved
chaincfg/mainnetparams.go Outdated Show resolved Hide resolved
Copy link
Member

@matheusd matheusd left a comment

Choose a reason for hiding this comment

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

You've committed a bootstrap.dat file, which I don't think is meant to exist in the repository.

@rstaudt2 rstaudt2 force-pushed the blockchain-latest-checkpoint branch 2 times, most recently from 649dbeb to dc97a36 Compare October 14, 2021 12:23
@rstaudt2
Copy link
Member Author

You've committed a bootstrap.dat file, which I don't think is meant to exist in the repository.

Good catch, thanks. Looks like that was accidentally committed when rebasing. Removed.

@rstaudt2 rstaudt2 force-pushed the blockchain-latest-checkpoint branch 2 times, most recently from a65d6ec to efc32f3 Compare October 14, 2021 17:57
This updates the blockchain checkpoints logic to use a single latest
checkpoint rather than multiple checkpoints.  The intermediate
checkpoints are no longer necessary because headers first syncing was
introduced, which discovers the most recent checkpoint before block
syncing even starts.
@davecgh davecgh merged commit 73c33c7 into decred:master Oct 16, 2021
@rstaudt2 rstaudt2 deleted the blockchain-latest-checkpoint branch October 28, 2021 21:58
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.

4 participants