Skip to content

Commit

Permalink
ledger: fix error condition leaked from KV-related refactoring (#5678)
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy authored Aug 17, 2023
1 parent 3200ad7 commit c5e779e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/acctdeltas.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (a *compactResourcesDeltas) resourcesLoadOld(tx trackerdb.TransactionScope,
} else if acctRef, ok = knownAddresses[addr]; !ok {
acctRef, err = ar.LookupAccountRowID(addr)
if err != nil {
if err != sql.ErrNoRows || err != trackerdb.ErrNotFound {
if err != sql.ErrNoRows && err != trackerdb.ErrNotFound {
err = fmt.Errorf("base account cannot be read while processing resource for addr=%s, aidx=%d: %w", addr.String(), aidx, err)
return err

Expand Down

0 comments on commit c5e779e

Please sign in to comment.