Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Lazar Petrovic <lpetrovic05@gmail.com>
  • Loading branch information
lpetrovic05 committed Apr 26, 2024
1 parent e89330b commit 2a1a00c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.swirlds.common.io.streams.SerializableDataInputStream;
import com.swirlds.common.io.streams.SerializableDataOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.Objects;

/**
Expand Down Expand Up @@ -159,7 +160,7 @@ public boolean equals(final Object other) {
}
final DetailedConsensusEvent that = (DetailedConsensusEvent) other;
return Objects.equals(baseEventHashedData, that.baseEventHashedData)
&& Objects.equals(signature, that.signature)
&& Arrays.equals(signature, that.signature)
&& Objects.equals(consensusData, that.consensusData);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,6 @@ void ancientEvent(final boolean useBirthRoundForAncientThreshold) {
currentAddressBook,
intakeEventCounter);

// when(hData.getGeneration()).thenReturn(EventConstants.FIRST_GENERATION);
// when(event.getAncientIndicator(any())).thenAnswer(invocation -> {
// final AncientMode mode = invocation.getArgument(0);
// return mode == AncientMode.GENERATION_THRESHOLD
// ? EventConstants.FIRST_GENERATION
// : EventConstants.MINIMUM_ROUND_CREATED;
// });

final GossipEvent event = new TestingEventBuilder(random)
.setCreatorId(currentNodeAddress.getNodeId())
.setBirthRound(EventConstants.MINIMUM_ROUND_CREATED)
Expand Down

0 comments on commit 2a1a00c

Please sign in to comment.