diff --git a/src/main/kotlin/cash/atto/node/vote/keeping/VoteKeeper.kt b/src/main/kotlin/cash/atto/node/vote/keeping/VoteKeeper.kt index 13acedec..25de6d41 100644 --- a/src/main/kotlin/cash/atto/node/vote/keeping/VoteKeeper.kt +++ b/src/main/kotlin/cash/atto/node/vote/keeping/VoteKeeper.kt @@ -92,6 +92,10 @@ class VoteKeeper( @Scheduled(fixedRate = 10, timeUnit = TimeUnit.MINUTES) suspend fun keep() { + if (!thisNode.isHistorical()) { + return + } + val minimalWeight = voteWeighter.getMinimalConfirmationWeight() val missingVote = voteRepository.findMissingVote(minimalWeight.raw.toBigInteger())