-
Notifications
You must be signed in to change notification settings - Fork 130
Conversation
d7af6f5
to
3c7733b
Compare
@@ -44,8 +44,8 @@ public RoundChangeCertificate getRoundChangeCertificate() { | |||
return roundChangeCertificate; | |||
} | |||
|
|||
public SignedData<PrepreparePayload> getIbftPrePrepareMessage() { | |||
return ibftPrePrepareMessage; | |||
public SignedData<ProposalPayload> getIbftPreProposalMessage() { |
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.
PreProposalMessage?
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.
Done.
@@ -115,13 +115,13 @@ private boolean validatePreprepareCertificateRound( | |||
final ConsensusRoundIdentifier roundChangeTarget) { | |||
|
|||
if (prepareCertRound.getSequenceNumber() != roundChangeTarget.getSequenceNumber()) { | |||
LOG.info("Invalid RoundChange message, PreprepareCertificate is not for local chain height."); | |||
LOG.info("Invalid RoundChange message, PreparedCertificate is not for local chain height."); |
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.
should this be ProposalCertificate rather than PreparedCertificate?
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.
no - it's still a PreparedCertificate I do believe (as in, the node is in the prepared state).
verify(basicValidator, times(1)) | ||
.addPreprepareMessage(prepareCertificate.getIbftPrePrepareMessage()); | ||
.createAt(prepareCertificate.getProposalMessage().getPayload().getRoundIdentifier()); | ||
verify(basicValidator, times(1)).addPreprepareMessage(prepareCertificate.getProposalMessage()); |
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 addPreprepareMessage something that should be changed?
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.
refactor is not your friend - it should just be addPrepareMessage.
8a34033
to
e3d8a40
Compare
public SignedData<ProposalPayload> createSignedProposalPayload( | ||
final ConsensusRoundIdentifier roundIdentifier, final Block block) { | ||
|
||
ProposalPayload prePrepareUnsignedMessageData = new ProposalPayload(roundIdentifier, block); |
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.
prePrepareUnsignedMessageData
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.
done.
final IbftSignedMessageData<IbftUnsignedPrePrepareMessageData> preprepareMessage = | ||
certificate.getIbftPrePrepareMessage(); | ||
final PreparedCertificate certificate, final ConsensusRoundIdentifier roundChangeTarget) { | ||
final SignedData<ProposalPayload> preprepareMessage = certificate.getProposalPayload(); |
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.
should be proposalMessage
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.
done
No description provided.