Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@marcio-diaz
Copy link
Contributor

@marcio-diaz marcio-diaz commented Nov 25, 2019

This PR saves all concluded rounds into DB.

TODO:

  • I still want to think if this is the correct way to save all completed prior rounds or I need to take into account popped completed rounds when calling complete().
  • Maybe extend to answer queries.
  • Add some CLI flags to query votes?

@marcio-diaz marcio-diaz added the A3-in_progress Pull request is in progress. No review needed at this stage. label Nov 25, 2019
@marcio-diaz marcio-diaz added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Nov 27, 2019
@marcio-diaz marcio-diaz changed the title Save all completed prior rounds Grandpa: save all completed prior rounds Nov 27, 2019
@arkpar
Copy link
Member

arkpar commented Nov 28, 2019

Does this fix paritytech/polkadot-sdk#93?

@marcio-diaz
Copy link
Contributor Author

marcio-diaz commented Nov 28, 2019

Does this fix paritytech/polkadot-sdk#93?

I think it can be extended for that. It was initiated by this comment of @rphmeier :

"About the database: at the moment we only persist some small amount of completed rounds. one thing we need to do soon is get a DB where we have all prior completed rounds' data. This should also help with addressing any relevant issues"

@gavofyork
Copy link
Member

@rphmeier does this do what you suggested?

Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

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

might lean a bit too heavily on the existing CompletedRounds structure storing the stuff which isn't concluded yet, but workable.

@gavofyork
Copy link
Member

@marcio-diaz CI fails.

@gavofyork gavofyork merged commit bf15ecf into master Nov 29, 2019
@gavofyork gavofyork deleted the marcio/save-all-prior-completed-rounds branch November 29, 2019 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants