[#740] innerring/notary: Fix reading notary config

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-08-03 20:51:02 +03:00 committed by Alex Vanin
parent e8665f6cef
commit 7a52bb31f1

View file

@ -84,7 +84,7 @@ func parseNotaryConfigs(cfg *viper.Viper, withSideNotary, withMainNotary bool) (
return
}
main.disabled = withMainNotary
main.disabled = !withMainNotary
main.amount = fixedn.Fixed8(cfg.GetInt64("notary.main.deposit_amount"))
main.duration = cfg.GetUint32("timers.main_notary")