Skip to content

Commit

Permalink
add disabledAuthority to round state
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorov-Georgi committed Jan 16, 2025
1 parent 514aa66 commit 8356801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/limechain/grandpa/state/RoundState.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class RoundState {
private final KVRepository<String, Object> repository;

private List<Authority> authorities;
private BigInteger disabledAuthority;
private BigInteger setId;
private BigInteger roundNumber;

Expand Down Expand Up @@ -190,7 +191,7 @@ public void handleGrandpaConsensusMessage(GrandpaConsensusMessage consensusMessa
));
//TODO: Implement later
case GRANDPA_ON_DISABLED -> {
log.log(Level.SEVERE, "'ON DISABLED' grandpa message not implemented");
disabledAuthority = consensusMessage.getDisabledAuthority();
}
case GRANDPA_PAUSE -> {
log.log(Level.SEVERE, "'PAUSE' grandpa message not implemented");
Expand Down

0 comments on commit 8356801

Please sign in to comment.