forked from TrueCloudLab/frostfs-node
[#152] IR: Process empty basic incomes
If network is not configured for basic income earnings, do not distribute GAS by the Alphabet nodes. Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
44b86bac5a
commit
9cd8f7cea0
3 changed files with 11 additions and 0 deletions
|
@ -12,6 +12,10 @@ func (inc *IncomeSettlementContext) Distribute() {
|
|||
inc.mu.Lock()
|
||||
defer inc.mu.Unlock()
|
||||
|
||||
if inc.noop {
|
||||
return
|
||||
}
|
||||
|
||||
txTable := common.NewTransferTable()
|
||||
|
||||
bankBalance, err := inc.balances.Balance(inc.bankOwner)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue