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

Ibft Integration Tests - Spurious Behaviour #615

Merged
merged 3 commits into from
Jan 21, 2019

Conversation

rain-on
Copy link
Contributor

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

This commit adds additional tests which fall outside of the existing
suite, and target spuriously behaved peers - i.e. illegal seals,
illformed RLP data etc.

This commit adds additional tests which fall outside of the existing
suite, and target spuriously behaved peers - i.e. illegal seals,
illformed RLP data etc.
@rain-on rain-on requested review from jframe and CjHare January 21, 2019 09:55
createSignedCommitPayload(
roundId, proposedBlock, context.getLocalNodeParams().getNodeKeyPair());
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Do these two illegal RLP cover the control flow if junk RLP (RLP that doesn't 'fit' into the expected data structure)?

Copy link
Contributor Author

@rain-on rain-on Jan 21, 2019

Choose a reason for hiding this comment

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

The first test ensures RLP which doesn't match a given message ID doesn't prevent ongoing IBFT operation.

The second test ensures that if a msg with a message-ID which is not for IBFT is received, that it is discarded.

The last test ensures if the seal in a commit msg is bad, that it is ignored.

Copy link
Contributor

@CjHare CjHare left a comment

Choose a reason for hiding this comment

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

The tests look good, I've only got the one open question, before approval

@rain-on rain-on merged commit 6bd2005 into PegaSysEng:master Jan 21, 2019
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