File tree 2 files changed +12
-2
lines changed
simulator/src/main/java/byzzbench/simulator/protocols/hbft
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -551,7 +551,7 @@ private void gcNewView(long newViewNumber) {
551
551
* 4.4. This means that any view change votes and pending tickets that
552
552
* are not in the new view are removed.
553
553
*/
554
- this .viewChanges .remove ( newViewNumber );
554
+ this .viewChanges .clear ( );
555
555
556
556
Iterator <TicketKey > iterator = this .tickets .keySet ().iterator ();
557
557
while (iterator .hasNext ()) {
Original file line number Diff line number Diff line change 1
1
package byzzbench .simulator .protocols .hbft .message ;
2
2
3
3
import byzzbench .simulator .transport .MessagePayload ;
4
+ import byzzbench .simulator .transport .messages .MessageWithRound ;
4
5
5
- public abstract class IPhaseMessage extends MessagePayload {
6
+ public abstract class IPhaseMessage extends MessagePayload implements MessageWithRound {
6
7
public abstract long getViewNumber ();
7
8
8
9
public abstract long getSequenceNumber ();
9
10
10
11
public abstract byte [] getDigest ();
12
+
13
+ /**
14
+ * Get the request of the message.
15
+ *
16
+ * @return The request of the message.
17
+ */
18
+ public long getRound () {
19
+ return getSequenceNumber ();
20
+ }
11
21
12
22
}
You can’t perform that action at this time.
0 commit comments