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

Add checkpointPolicy field to ChainFollower #3372

Merged

Conversation

HeinrichApfelmus
Copy link
Contributor

Issue number

ADP-1497

Overview

In this pull request, we add a checkpointPolicy field to the ChainFollower type.

This policy enables any chain synchronizer which does not retrieve full blocks — such as lightSync — to target those block heights at which the follower makes checkpoints.

ℹ️ This pull request only changes the ChainFollower type — incorporating this new information into the lightSync algorithm is left for a future pull request.

Details

  • We also add a defaultPolicy to Cardano.Wallet.Checkpoints in order to reduce cognitive burden in the places where a ChainFollower is constructed.

Comments

@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/ADP-1043/chainfollower-with-policy branch from 5570557 to 8f6aacb Compare July 1, 2022 11:34
@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/ADP-1043/chainfollower-with-policy branch from 8f6aacb to 2fa97e9 Compare July 1, 2022 12:34
@HeinrichApfelmus
Copy link
Contributor Author

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 2, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit a88a639 into master Jul 2, 2022
@iohk-bors iohk-bors bot deleted the HeinrichApfelmus/ADP-1043/chainfollower-with-policy branch July 2, 2022 00:24
WilliamKingNoel-Bot pushed a commit that referenced this pull request Jul 2, 2022
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.

2 participants