Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/accounting/accounting.go
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ func (a *Accounting) decreaseOriginatedBalanceTo(peer swarm.Address, limit *big.
return nil
}

// decreaseOriginatedBalanceTo decreases the originated balance by provided amount even below 0
// decreaseOriginatedBalanceBy decreases the originated balance by provided amount even below 0
func (a *Accounting) decreaseOriginatedBalanceBy(peer swarm.Address, amount *big.Int) error {
loggerV2 := a.logger.V(2).Register()

Expand Down
6 changes: 3 additions & 3 deletions pkg/accounting/accounting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func TestAccountingAddBalance(t *testing.T) {
}
}

// TestAccountingAddBalance does several accounting actions and verifies the balance after each steep
// TestAccountingAddOriginatedBalance does several accounting actions and verifies the balance after each steep
func TestAccountingAddOriginatedBalance(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -415,7 +415,7 @@ func TestAccountingReserve(t *testing.T) {
}
}

// TestAccountingReserve tests that reserve returns an error if the payment threshold would be exceeded,
// TestAccountingReserveAheadOfTime tests that reserve returns an error if the payment threshold would be exceeded,
// but extends this limit by 'n' (max 2) seconds worth of refresh rate if last refreshment was 'n' seconds ago.
func TestAccountingReserveAheadOfTime(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -1196,7 +1196,7 @@ func TestAccountingSurplusBalance(t *testing.T) {
}
}

// TestAccountingNotifyPayment tests that payments adjust the balance
// TestAccountingNotifyPaymentReceived tests that payments adjust the balance
func TestAccountingNotifyPaymentReceived(t *testing.T) {
t.Parallel()

Expand Down
Loading