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

grandpa: save historical votes#2551

Closed
marcio-diaz wants to merge 50 commits intomasterfrom
marcio/save-vote-indices-to-db
Closed

grandpa: save historical votes#2551
marcio-diaz wants to merge 50 commits intomasterfrom
marcio/save-vote-indices-to-db

Conversation

@marcio-diaz
Copy link
Copy Markdown
Contributor

@marcio-diaz marcio-diaz commented May 13, 2019

We need to save the votes received indicating the moment of voting in order to answer challenge queries.

Related to paritytech/finality-grandpa#10

Depends on: paritytech/finality-grandpa#65

@marcio-diaz marcio-diaz added the A3-in_progress Pull request is in progress. No review needed at this stage. label May 13, 2019
@marcio-diaz marcio-diaz requested a review from andresilva May 14, 2019 07:25
@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 May 14, 2019
@DemiMarie-temp
Copy link
Copy Markdown

The compile errors need to be fixed.

@marcio-diaz marcio-diaz added the A3-in_progress Pull request is in progress. No review needed at this stage. label May 16, 2019
@marcio-diaz marcio-diaz force-pushed the marcio/save-vote-indices-to-db branch from cc160b2 to e7ef2d7 Compare May 16, 2019 12:57
@marcio-diaz marcio-diaz changed the title Grandpa: save HistoricalVotes Grandpa 1: save HistoricalVotes May 17, 2019
@rphmeier rphmeier removed the A0-please_review Pull request needs code review. label May 22, 2019
@bkchr
Copy link
Copy Markdown
Member

bkchr commented Jun 7, 2019

What is the status of this?

@andresilva
Copy link
Copy Markdown
Contributor

This is dependent on us releasing finality-grandpa 0.8, and we're trying to synchronize a couple of PRs that will depend on it (e.g. #2801). IMO this PR and #2611 could be merged into one.

@marcio-diaz marcio-diaz reopened this Jul 4, 2019
@marcio-diaz marcio-diaz changed the title Grandpa 1: save HistoricalVotes grandpa: save historical votes Jul 4, 2019
@marcio-diaz marcio-diaz force-pushed the marcio/save-vote-indices-to-db branch from 757de27 to bdb4b4a Compare July 5, 2019 15:07
@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 Jul 5, 2019
Copy link
Copy Markdown
Contributor

@andresilva andresilva left a comment

Choose a reason for hiding this comment

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

Please rebase this over master.

@@ -0,0 +1,938 @@
// Copyright 2019 Parity Technologies (UK) Ltd.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Committed by mistake?

rounds.push_back(genesis);

let voters = voters.current().1.iter().map(|(a, _)| a.clone()).collect();
// let voters = voters.current().1.iter().map(|(a, _)| a.clone()).collect();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove?

@bkchr
Copy link
Copy Markdown
Member

bkchr commented Jul 27, 2019

What is the status of this?

@marcio-diaz
Copy link
Copy Markdown
Contributor Author

marcio-diaz commented Jul 27, 2019

What is the status of this?

After a talk with a w3f researcher we realized that is not needed.

@marcio-diaz marcio-diaz deleted the marcio/save-vote-indices-to-db branch July 27, 2019 14:58
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