[#139] Use storage node GAS emission in inner ring app

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-03 11:12:39 +03:00 committed by Alex Vanin
parent d193f1087c
commit 0c49c08609
2 changed files with 4 additions and 0 deletions

View file

@ -83,4 +83,6 @@ func defaultConfiguration(cfg *viper.Viper) {
cfg.SetDefault("netmap_cleaner.enabled", false)
cfg.SetDefault("netmap_cleaner.threshold", 3)
cfg.SetDefault("emit.storage.amount", 0)
}

View file

@ -255,8 +255,10 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
Log: log,
PoolSize: cfg.GetInt("workers.alphabet"),
AlphabetContracts: server.contracts.alphabet,
NetmapContract: server.contracts.netmap,
MorphClient: server.morphClient,
IRList: server,
StorageEmission: cfg.GetUint64("emit.storage.amount"),
})
if err != nil {
return nil, err