[#21] ir: Provide netmap contract script hash into neofs processor
Netmap contract script hash is used to synchronize global config and inner ring list in both chains. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
a19e9c1f00
commit
be9e7664f3
2 changed files with 4 additions and 0 deletions
|
@ -202,6 +202,7 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
|
|||
PoolSize: cfg.GetInt("workers.neofs"),
|
||||
NeoFSContract: contracts.neofs,
|
||||
BalanceContract: contracts.balance,
|
||||
NetmapContract: contracts.netmap,
|
||||
MorphClient: server.morphClient,
|
||||
EpochState: server,
|
||||
ActiveState: server,
|
||||
|
|
|
@ -27,6 +27,7 @@ type (
|
|||
pool *ants.Pool
|
||||
neofsContract util.Uint160
|
||||
balanceContract util.Uint160
|
||||
netmapContract util.Uint160
|
||||
morphClient *client.Client
|
||||
epochState EpochState
|
||||
activeState ActiveState
|
||||
|
@ -38,6 +39,7 @@ type (
|
|||
PoolSize int
|
||||
NeoFSContract util.Uint160
|
||||
BalanceContract util.Uint160
|
||||
NetmapContract util.Uint160
|
||||
MorphClient *client.Client
|
||||
EpochState EpochState
|
||||
ActiveState ActiveState
|
||||
|
@ -75,6 +77,7 @@ func New(p *Params) (*Processor, error) {
|
|||
pool: pool,
|
||||
neofsContract: p.NeoFSContract,
|
||||
balanceContract: p.BalanceContract,
|
||||
netmapContract: p.NetmapContract,
|
||||
morphClient: p.MorphClient,
|
||||
epochState: p.EpochState,
|
||||
activeState: p.ActiveState,
|
||||
|
|
Loading…
Reference in a new issue