From a6e0b6f408c58055751e2cc23e705bedaac51374 Mon Sep 17 00:00:00 2001 From: Louis Singer <41042567+louisinger@users.noreply.github.com> Date: Thu, 23 May 2024 14:43:30 +0200 Subject: [PATCH] Fix badger repo SweepVtxo API (#172) --- server/.gitignore | 4 +++- server/internal/infrastructure/db/badger/vtxo_repo.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/.gitignore b/server/.gitignore index 757492d..5f87b3d 100755 --- a/server/.gitignore +++ b/server/.gitignore @@ -21,4 +21,6 @@ DS_Store go.work -go.work.sum \ No newline at end of file +go.work.sum + +.vscode/ \ No newline at end of file diff --git a/server/internal/infrastructure/db/badger/vtxo_repo.go b/server/internal/infrastructure/db/badger/vtxo_repo.go index 0ff5910..3088545 100644 --- a/server/internal/infrastructure/db/badger/vtxo_repo.go +++ b/server/internal/infrastructure/db/badger/vtxo_repo.go @@ -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)