Skip to content

Commit 21b74c9

Browse files
basic: skip basic income distribution if rate is 0 (#3352)
2 parents 3fc6114 + da3f356 commit 21b74c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog for NeoFS Node
66
### Added
77

88
### Fixed
9+
- Basic income collection/distribution in networks with rate set to zero (#3352)
910

1011
### Changed
1112

pkg/innerring/processors/settlement/basic/collect.go

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ func (inc *IncomeSettlementContext) Collect() {
2525
return
2626
}
2727

28+
if cachedRate == 0 {
29+
inc.log.Info("basic income rate is zero, skipping collection")
30+
return
31+
}
32+
2833
cnrEstimations, err := inc.estimations.Estimations(inc.epoch)
2934
if err != nil {
3035
inc.log.Error("can't fetch container size estimations",

0 commit comments

Comments
 (0)