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

Ibft split extradata validation rule into components #581

Merged
merged 4 commits into from Jan 16, 2019

Conversation

rain-on
Copy link
Contributor

@rain-on rain-on commented Jan 16, 2019

In order to validate a block separate to its commit seals, the commit
seals must be validated separately to the validator content of the
block.

At this stage, the commit rule is not light, however this change
is to be conducted in subsequent PRs.

In order to validate a block separate to its commit seals, the commit
seals must be validated separately to the validator content of the
block.

At this stage, the commit rule is  _not_ light, however this change
is to be conducted in subsequent PRs.
@rain-on rain-on requested review from jframe and CjHare January 16, 2019 03:44
Copy link
Contributor

@jframe jframe left a comment

Choose a reason for hiding this comment

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

LGTM


final List<Address> committers =
IbftBlockHashing.recoverCommitterAddresses(header, ibftExtraData);
if (!validateCommitters(committers, validatorProvider.getValidators())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this can be simplified to return validateCommitters(committers, validatorProvider.getValidators());

@rain-on rain-on merged commit d75f6a3 into PegaSysEng:master Jan 16, 2019
@rain-on rain-on deleted the split_rules branch January 16, 2019 21:34
iikirilov pushed a commit to vinistevam/pantheon that referenced this pull request Jan 24, 2019
In order to validate a block separate to its commit seals, the commit
seals must be validated separately to the validator content of the
block.

At this stage, the commit rule is  _not_ light, however this change
is to be conducted in subsequent PRs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants