Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorov-Georgi committed Jan 27, 2025
1 parent 314461a commit 8e73a15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,6 @@ private void updateAuthorityStatus() {
.map(Optional::get)
.findFirst();

keyPair.ifPresentOrElse(AbstractState::setAuthorityStatus, AbstractState::unsetAuthorityStatus);
keyPair.ifPresentOrElse(AbstractState::setAuthorityStatus, AbstractState::clearAuthorityStatus);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/limechain/state/AbstractState.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static void setAuthorityStatus(Pair<byte[], byte[]> keyPair) {
grandpaKeyPair = keyPair;
}

public static void unsetAuthorityStatus() {
public static void clearAuthorityStatus() {
isActiveAuthority = false;
grandpaKeyPair = null;
}
Expand Down

0 comments on commit 8e73a15

Please sign in to comment.