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

chore(adr-35): Refactor determining start height #176

Merged
merged 6 commits into from
Nov 30, 2024

Conversation

gitferry
Copy link
Member

Closes #119 by adding highest voted height into consideration of determining start height. This implements the finality provider part of ADR-35

@gitferry gitferry changed the title chore: Refactor starting height chore(adr-35): Refactor determining start height Nov 29, 2024
@gitferry gitferry marked this pull request as ready for review November 29, 2024 10:27
// TODO: provide an option to start from the last processed height in case
// the consumer chain distributes rewards for late voters
func (fp *FinalityProviderInstance) getPollerStartingHeight() (uint64, error) {
// DetermineStartHeight determines trting height for block processing by:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// DetermineStartHeight determines trting height for block processing by:
// DetermineStartHeight determines starting height for block processing by:

@gitferry gitferry merged commit dd94b92 into main Nov 30, 2024
12 checks passed
@gitferry gitferry deleted the gai/refactor-starting-height branch November 30, 2024 03:14
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.

Sync last voted height from the consumer chain when bootstraping
2 participants