forked from TrueCloudLab/frostfs-node
[#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"),
|
PoolSize: cfg.GetInt("workers.neofs"),
|
||||||
NeoFSContract: contracts.neofs,
|
NeoFSContract: contracts.neofs,
|
||||||
BalanceContract: contracts.balance,
|
BalanceContract: contracts.balance,
|
||||||
|
NetmapContract: contracts.netmap,
|
||||||
MorphClient: server.morphClient,
|
MorphClient: server.morphClient,
|
||||||
EpochState: server,
|
EpochState: server,
|
||||||
ActiveState: server,
|
ActiveState: server,
|
||||||
|
|
|
@ -27,6 +27,7 @@ type (
|
||||||
pool *ants.Pool
|
pool *ants.Pool
|
||||||
neofsContract util.Uint160
|
neofsContract util.Uint160
|
||||||
balanceContract util.Uint160
|
balanceContract util.Uint160
|
||||||
|
netmapContract util.Uint160
|
||||||
morphClient *client.Client
|
morphClient *client.Client
|
||||||
epochState EpochState
|
epochState EpochState
|
||||||
activeState ActiveState
|
activeState ActiveState
|
||||||
|
@ -38,6 +39,7 @@ type (
|
||||||
PoolSize int
|
PoolSize int
|
||||||
NeoFSContract util.Uint160
|
NeoFSContract util.Uint160
|
||||||
BalanceContract util.Uint160
|
BalanceContract util.Uint160
|
||||||
|
NetmapContract util.Uint160
|
||||||
MorphClient *client.Client
|
MorphClient *client.Client
|
||||||
EpochState EpochState
|
EpochState EpochState
|
||||||
ActiveState ActiveState
|
ActiveState ActiveState
|
||||||
|
@ -75,6 +77,7 @@ func New(p *Params) (*Processor, error) {
|
||||||
pool: pool,
|
pool: pool,
|
||||||
neofsContract: p.NeoFSContract,
|
neofsContract: p.NeoFSContract,
|
||||||
balanceContract: p.BalanceContract,
|
balanceContract: p.BalanceContract,
|
||||||
|
netmapContract: p.NetmapContract,
|
||||||
morphClient: p.MorphClient,
|
morphClient: p.MorphClient,
|
||||||
epochState: p.EpochState,
|
epochState: p.EpochState,
|
||||||
activeState: p.ActiveState,
|
activeState: p.ActiveState,
|
||||||
|
|
Loading…
Reference in a new issue