Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Log error if clique or ibft have 0 validators in genesis #1509

Merged
merged 5 commits into from
May 30, 2019

Conversation

rain-on
Copy link
Contributor

@rain-on rain-on commented May 29, 2019

No description provided.

@rain-on rain-on requested review from ajsutton and CjHare May 29, 2019 22:27
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

Couple of nits but LGTM.

@@ -299,6 +301,10 @@ protected abstract MiningCoordinator createMiningCoordinator(

protected abstract ProtocolSchedule<C> createProtocolSchedule();

protected boolean validateContext(final ProtocolContext<C> context) {
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the return value - nothing appears to use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah .... oops .... was thinking that if the genesis was invalid, that may we'd stop execution ... but, think the log is plenty...

@rain-on rain-on merged commit c68532e into PegaSysEng:master May 30, 2019
@rain-on rain-on deleted the zerovalidators branch May 30, 2019 05:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants