set default clique period to 1 seconds

This commit is contained in:
jangko 2022-04-13 18:44:36 +07:00
parent 25302f4fd0
commit 38c548f25f
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

View File

@ -213,8 +213,8 @@ proc loadNetworkParams*(cc: CustomChain, cg: var NetworkParams):
cc.config.clique.epoch.isSome:
cg.config.poaEngine = true
if cc.config.clique.period.isSome:
cg.config.cliquePeriod = cc.config.clique.period.get()
# set default clique period to 1 second.
cg.config.cliquePeriod = cc.config.clique.period.get(1)
if cc.config.clique.epoch.isSome:
cg.config.cliqueEpoch = cc.config.clique.epoch.get()