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

Ensure validator has the voting snapshot state before sealing #38

Merged
merged 3 commits into from
Jan 22, 2019

Conversation

jwasinger
Copy link
Member

No description provided.

@@ -396,44 +456,12 @@ impl Engine<EthereumMachine> for Clique {
header.number(), *self.state.read());
*/

if self.state(&parent).is_none() {
return Err(From::from(format!("could not parse parent state for {}", &parent.hash())));

Choose a reason for hiding this comment

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

the error text here could be more precise:
"Parent state not found or couldn't be recovered."

alternatively, we could also change return value of state() call into an Result<SnapshotState, Error> which may provide better error.

@thefallentree
Copy link

no idea about why CI would fail either, I restarted the job to see if it work this time(TM)

@5chdn
Copy link

5chdn commented Jan 8, 2019

Can you configure your editor for indentation using spaces please? (tab size 2)

@thefallentree
Copy link

tested locally without issue.

@thefallentree thefallentree merged commit fcf787c into master Jan 22, 2019
@5chdn 5chdn deleted the restore-voting-state branch January 23, 2019 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants