forked from TrueCloudLab/frostfs-node
[#139] Emit gas to the storage nodes at emission tick
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
d74aa807bf
commit
d193f1087c
2 changed files with 56 additions and 0 deletions
|
@ -21,8 +21,10 @@ type (
|
|||
log *zap.Logger
|
||||
pool *ants.Pool
|
||||
alphabetContracts [7]util.Uint160
|
||||
netmapContract util.Uint160
|
||||
morphClient *client.Client
|
||||
irList Indexer
|
||||
storageEmission uint64
|
||||
}
|
||||
|
||||
// Params of the processor constructor.
|
||||
|
@ -30,8 +32,10 @@ type (
|
|||
Log *zap.Logger
|
||||
PoolSize int
|
||||
AlphabetContracts [7]util.Uint160
|
||||
NetmapContract util.Uint160
|
||||
MorphClient *client.Client
|
||||
IRList Indexer
|
||||
StorageEmission uint64
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -57,8 +61,10 @@ func New(p *Params) (*Processor, error) {
|
|||
log: p.Log,
|
||||
pool: pool,
|
||||
alphabetContracts: p.AlphabetContracts,
|
||||
netmapContract: p.NetmapContract,
|
||||
morphClient: p.MorphClient,
|
||||
irList: p.IRList,
|
||||
storageEmission: p.StorageEmission,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue