Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire qbft message validation into business logic #1813

Merged
merged 23 commits into from
Jan 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed test issues
Signed-off-by: Trent Mohay <trent.mohay@consensys.net>
  • Loading branch information
Trent Mohay committed Jan 17, 2021
commit 46d198034aea8e93b2d3777948f4bd6939c395d3
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private enum ROUND_ID {
ONE
}

private class RoundSpecificItems {
private static class RoundSpecificItems {

public final Block block;
public final ConsensusRoundIdentifier roundIdentifier;
Expand All @@ -87,7 +87,7 @@ public RoundSpecificItems(
@Mock private WorldStateArchive worldStateArchive;
private ProtocolContext protocolContext;

private Map<ROUND_ID, RoundSpecificItems> roundItems = new HashMap<>();
private final Map<ROUND_ID, RoundSpecificItems> roundItems = new HashMap<>();

@Before
public void setup() {
Expand Down Expand Up @@ -126,8 +126,8 @@ private RoundSpecificItems createRoundSpecificItems(final int roundNumber) {

private Proposal createProposal(
final RoundSpecificItems roundItem,
List<SignedData<RoundChangePayload>> roundChanges,
List<SignedData<PreparePayload>> prepares) {
final List<SignedData<RoundChangePayload>> roundChanges,
final List<SignedData<PreparePayload>> prepares) {
return validators
.getMessageFactory(0)
.createProposal(roundItem.roundIdentifier, roundItem.block, roundChanges, prepares);
Expand Down