mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-31 17:14:46 +01:00
Fix badger repo SweepVtxo API (#172)
This commit is contained in:
4
server/.gitignore
vendored
4
server/.gitignore
vendored
@@ -21,4 +21,6 @@ DS_Store
|
||||
|
||||
|
||||
go.work
|
||||
go.work.sum
|
||||
go.work.sum
|
||||
|
||||
.vscode/
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user