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

make sure we set the syncto height correctly when we roll back instea… #11389

Merged
merged 2 commits into from
May 2, 2022

Conversation

wjblanke
Copy link
Contributor

@wjblanke wjblanke commented May 1, 2022

…d of noop

@wjblanke wjblanke requested a review from mariano54 May 1, 2022 18:20
@@ -184,8 +184,8 @@ async def get_peak_block(self) -> Optional[HeaderBlock]:
return self._peak
return await self._basic_store.get_object("PEAK_BLOCK", HeaderBlock)

async def set_finished_sync_up_to(self, height: int, in_transaction=False):
if height > await self.get_finished_sync_up_to():
async def set_finished_sync_up_to(self, height: int, in_transaction=False, in_rollback=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rename this argument to: allow_rollback

@wjblanke wjblanke merged commit 8905dc6 into main May 2, 2022
@wjblanke wjblanke deleted the rollwjb branch May 2, 2022 22:55
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