[#786] cmd/neofs-node: Use NNS to find contract script hashes missing in config

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-08-31 17:02:42 +03:00 committed by Alex Vanin
parent b6dfa6c118
commit d840627816
4 changed files with 47 additions and 11 deletions

View file

@ -139,6 +139,8 @@ type cfgMorph struct {
blockTimers []*timer.BlockTimer // all combined timers
eigenTrustTimer *timer.BlockTimer // timer for EigenTrust iterations
proxyScriptHash neogoutil.Uint160
}
type cfgAccounting struct {
@ -278,6 +280,9 @@ func initCfg(path string) *cfg {
maxChunkSize: maxChunkSize,
maxAddrAmount: maxAddrAmount,
},
cfgMorph: cfgMorph{
proxyScriptHash: contractsconfig.Proxy(appCfg),
},
localAddr: netAddr,
respSvc: response.NewService(
response.WithNetworkState(netState),