From 0c49c0860921676408e5c869325b169ab02a73e3 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 3 Nov 2020 11:12:39 +0300 Subject: [PATCH] [#139] Use storage node GAS emission in inner ring app Signed-off-by: Alex Vanin --- cmd/neofs-ir/defaults.go | 2 ++ pkg/innerring/innerring.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/neofs-ir/defaults.go b/cmd/neofs-ir/defaults.go index e395ef321..9f7ef68b9 100644 --- a/cmd/neofs-ir/defaults.go +++ b/cmd/neofs-ir/defaults.go @@ -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) } diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index 029b0147a..40ab06646 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -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