-
Notifications
You must be signed in to change notification settings - Fork 130
IBFT Integration Tests - Future Height #591
Conversation
This adds tests to ensure the IBFT capability handles the chain updating "under" the state machine.
|
||
private final int NETWORK_SIZE = 5; | ||
|
||
// Local node is not the first proposer for the current round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this message correct? where or what is local node ...I don't see a field with that name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to handle this - but all integration tests are exercising the ibftController embedded in the TestContext - which I treat/consider the localNode.
Would love better nomenclature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, but I'll leave it open for @jframe take a look tomorrow
...sus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/statemachine/IbftController.java
Show resolved
Hide resolved
...t/src/integration-test/java/tech/pegasys/pantheon/consensus/ibft/tests/FutureHeightTest.java
Show resolved
Hide resolved
@@ -37,7 +37,7 @@ | |||
public class TestHelpers { | |||
|
|||
public static SignedData<CommitPayload> createSignedCommentPayload( | |||
final Block block, final KeyPair signingKeyPair, final ConsensusRoundIdentifier roundId) { | |||
final ConsensusRoundIdentifier roundId, final Block block, final KeyPair signingKeyPair) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the consistency with other methods 👍
This adds tests to ensure the IBFT capability handles the chain updating
"under" the state machine.