Skip to content

Commit

Permalink
reproduce large negative issue
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Dec 1, 2020
1 parent 0b23f67 commit 0f06e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions storage/modules/balance_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,10 +1316,7 @@ func (b *BalanceStorage) removeHistoricalBalances(
}
}

// We only update the last pruned index
// if we are not orphaning and we actually
// deleted some key.
if orphan || len(foundKeys) == 0 {
if orphan {
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion storage/modules/balance_storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func TestBalance(t *testing.T) {
ctx,
account,
largeDeduction.Currency,
-1,
-1238900,
)
assert.NoError(t, err)

Expand Down

0 comments on commit 0f06e03

Please sign in to comment.