Skip to content
Merged
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
8 changes: 8 additions & 0 deletions database/utxo.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ func (d *Database) UtxosDeleteConsumed(
return 0, errors.New("failed to query consumed UTxOs during cleanup")
}
utxoCount := len(utxos)
deleteUtxos := make([]any, utxoCount)
for idx, utxo := range utxos {
deleteUtxos[idx] = utxo
}
err = d.metadata.DeleteUtxos(deleteUtxos, txn.Metadata())
if err != nil {
return 0, err
}

// Loop through UTxOs and delete, with a new transaction each loop
for ret == nil {
Expand Down