[#873] innerring: Delete duration from notary configs

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-10-12 16:56:16 +03:00 committed by Alex Vanin
parent e5748bfc96
commit 4afccab015
2 changed files with 5 additions and 11 deletions

View file

@ -810,7 +810,6 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
mainNotaryTimer := newNotaryDepositTimer(&notaryDepositArgs{
l: log,
depositor: server.depositMainNotary,
notaryDuration: server.mainNotaryConfig.duration,
})
server.addBlockTimer(mainNotaryTimer)
@ -820,7 +819,6 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
sideNotaryTimer := newNotaryDepositTimer(&notaryDepositArgs{
l: log,
depositor: server.depositSideNotary,
notaryDuration: server.sideNotaryConfig.duration,
})
server.addBlockTimer(sideNotaryTimer)

View file

@ -11,7 +11,6 @@ import (
type (
notaryConfig struct {
duration uint32 // lifetime of notary deposit in blocks
disabled bool // true if notary disabled on chain
}
)
@ -105,9 +104,6 @@ func parseNotaryConfigs(cfg *viper.Viper, withSideNotary, withMainNotary bool) (
}
main.disabled = !withMainNotary
main.duration = cfg.GetUint32("timers.main_notary")
side.duration = cfg.GetUint32("timers.side_notary")
return
}