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
6 changes: 3 additions & 3 deletions database/utxo.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (d *Database) UtxosDeleteConsumed(
) error {
var ret error
if txn == nil {
txn = d.Transaction(false)
txn = d.Transaction(true)
defer txn.Commit() //nolint:errcheck
}
// Get UTxOs that are marked as deleted and older than our slot window
Expand Down Expand Up @@ -191,7 +191,7 @@ func (d *Database) UtxosDeleteRolledback(
) error {
var ret error
if txn == nil {
txn = d.Transaction(false)
txn = d.Transaction(true)
defer txn.Commit() //nolint:errcheck
}
utxos, err := d.metadata.GetUtxosDeletedBeforeSlot(slot, txn.Metadata())
Expand Down Expand Up @@ -233,7 +233,7 @@ func (d *Database) UtxosUnspend(
txn *Txn,
) error {
if txn == nil {
txn = NewMetadataOnlyTxn(d, false)
txn = NewMetadataOnlyTxn(d, true)
defer txn.Commit() //nolint:errcheck
}
return d.metadata.SetUtxosNotDeletedAfterSlot(slot, txn.Metadata())
Expand Down
Loading