From 4be35712fc950b9c4876244fe9c07b025ce9a95f Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 30 Aug 2021 20:24:37 +0700 Subject: [PATCH] sealing engine: remove redundant clique epoch and period check both clique epoch and clique period already checked in newClique and will use default configuration they are not set. this redundant check in sealing engine also failed with some configuration where only one of them is set and the other one not set. --- nimbus/sealer.nim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nimbus/sealer.nim b/nimbus/sealer.nim index 21c2e7b4d..f926b48dc 100644 --- a/nimbus/sealer.nim +++ b/nimbus/sealer.nim @@ -47,12 +47,6 @@ proc validateSealer*(chain: Chain): Result[void, string] = if not chainConf.poaEngine: return err("currently only PoA engine is supported") - if chainConf.cliquePeriod <= 0: - return err("clique period should be greater than 0") - - if chainConf.cliqueEpoch <= 0: - return err("clique epoch should be greater than 0") - ok() proc isLondon(c: ChainConfig, number: BlockNumber): bool {.inline.} =