Skip to content

Commit

Permalink
fix: Remove post construct annotation which breaks node startup. (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zurcusa authored Jan 16, 2025
1 parent ed33aea commit 72c928b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/com/limechain/grandpa/state/RoundState.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -43,8 +42,6 @@ public class RoundState {
private Map<PubKey, SignedVote> pvEquivocations = new ConcurrentHashMap<>();
private Map<PubKey, SignedVote> pcEquivocations = new ConcurrentHashMap<>();


@PostConstruct
public void initialize() {
loadPersistedState();
}
Expand Down Expand Up @@ -115,9 +112,9 @@ public Map<PubKey, Vote> 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();
}
Expand Down

0 comments on commit 72c928b

Please sign in to comment.