[#84] Add API version to neofs-node config
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
2d5cb378a7
commit
20c27d0542
1 changed files with 9 additions and 5 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
|
||||
crypto "github.com/nspcc-dev/neofs-crypto"
|
||||
"github.com/nspcc-dev/neofs-node/misc"
|
||||
|
@ -90,6 +91,8 @@ type cfg struct {
|
|||
|
||||
key *ecdsa.PrivateKey
|
||||
|
||||
apiVersion *pkg.Version
|
||||
|
||||
cfgGRPC cfgGRPC
|
||||
|
||||
cfgMorph cfgMorph
|
||||
|
@ -206,6 +209,7 @@ func initCfg(path string) *cfg {
|
|||
log: log,
|
||||
wg: new(sync.WaitGroup),
|
||||
key: key,
|
||||
apiVersion: pkg.SDKVersion(),
|
||||
cfgAccounting: cfgAccounting{
|
||||
scriptHash: u160Accounting,
|
||||
fee: util.Fixed8(viperCfg.GetInt(cfgAccountingFee)),
|
||||
|
|
Loading…
Reference in a new issue