diff --git a/src/main/java/com/limechain/grandpa/state/RoundState.java b/src/main/java/com/limechain/grandpa/state/RoundState.java index d185204b..64497a19 100644 --- a/src/main/java/com/limechain/grandpa/state/RoundState.java +++ b/src/main/java/com/limechain/grandpa/state/RoundState.java @@ -8,7 +8,6 @@ import com.limechain.storage.KVRepository; import com.limechain.storage.StateUtil; import io.libp2p.core.crypto.PubKey; -import jakarta.annotation.PostConstruct; import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.Setter; @@ -43,8 +42,6 @@ public class RoundState { private Map pvEquivocations = new ConcurrentHashMap<>(); private Map pcEquivocations = new ConcurrentHashMap<>(); - - @PostConstruct public void initialize() { loadPersistedState(); } @@ -115,9 +112,9 @@ public Map fetchPrecommits() { } private void loadPersistedState() { - this.authorities = Arrays.asList(fetchGrandpaAuthorities()); this.setId = fetchAuthoritiesSetId(); this.roundNumber = fetchLatestRound(); + this.authorities = Arrays.asList(fetchGrandpaAuthorities()); this.precommits = fetchPrecommits(); this.prevotes = fetchPrevotes(); }