Fix badger repo SweepVtxo API (#172)

This commit is contained in:
Louis Singer
2024-05-23 14:43:30 +02:00
committed by GitHub
parent 5f2e1ed31e
commit a6e0b6f408
2 changed files with 3 additions and 2 deletions

4
server/.gitignore vendored
View File

@@ -21,4 +21,6 @@ DS_Store
go.work
go.work.sum
go.work.sum
.vscode/

View File

@@ -271,7 +271,6 @@ func (r *vtxoRepository) sweepVtxo(ctx context.Context, vtxoKey domain.VtxoKey)
}
vtxo.Swept = true
vtxo.ExpireAt = 0
if ctx.Value("tx") != nil {
tx := ctx.Value("tx").(*badger.Txn)
err = r.store.TxUpdate(tx, vtxoKey.Hash(), *vtxo)