Skip to content

Commit

Permalink
rescan: add missing db update error check
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Sep 19, 2024
1 parent b1e49ac commit a93f661
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wallet/rescan.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ func (w *Wallet) rescan(ctx context.Context, n NetworkBackend,
err = walletdb.Update(ctx, w.db, func(dbtx walletdb.ReadWriteTx) error {
return w.txStore.UpdateProcessedTxsBlockMarker(dbtx, &rescanBlocks[len(rescanBlocks)-1])
})
if err != nil {
return err
}
if p != nil {
p <- RescanProgress{ScannedThrough: through}
}
Expand Down

0 comments on commit a93f661

Please sign in to comment.