Skip to content

Commit

Permalink
sqlite: fix Hash256 scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger authored and ChrisSchinnerl committed Sep 16, 2024
1 parent 85e9d3f commit cdf3592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/sql/sqlite/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (c chainUpdateTx) WalletRevertIndex(index types.ChainIndex, removed, unspen
// delete removed outputs
for _, e := range removed {
c.l.Debugw(fmt.Sprintf("remove output %v", e.ID), "height", index.Height, "block_id", index.ID)
if res, err := deleteRemovedStmt.Exec(c.ctx, e.ID); err != nil {
if res, err := deleteRemovedStmt.Exec(c.ctx, ssql.Hash256(e.ID)); err != nil {
return fmt.Errorf("failed to delete removed output: %w", err)
} else if n, err := res.RowsAffected(); err != nil {
return fmt.Errorf("failed to get rows affected: %w", err)
Expand Down

0 comments on commit cdf3592

Please sign in to comment.