From 1ab73a62726b814f0024ff3d16c23048965b64f6 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Mon, 16 Jun 2025 23:28:26 -0300 Subject: [PATCH] loopout: ignore saved HTLC txid If a reorg happens, the saved txid prevents loop-out from discoveing new txid. --- client_test.go | 2 +- loopout.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index dfd96c78..15b9c7c9 100644 --- a/client_test.go +++ b/client_test.go @@ -291,7 +291,7 @@ func testLoopOutResume(t *testing.T, confs uint32, expired, preimageRevealed, // Expect client to register for our expected number of confirmations. confIntent := ctx.Context.AssertRegisterConf( - preimageRevealed, int32(confs), + false, int32(confs), ) htlc, err := utils.GetHtlc( diff --git a/loopout.go b/loopout.go index fde6d282..f7da0de6 100644 --- a/loopout.go +++ b/loopout.go @@ -330,7 +330,6 @@ func resumeLoopOutSwap(cfg *swapConfig, pend *loopdb.LoopOut, } else { swap.state = lastUpdate.State swap.lastUpdateTime = lastUpdate.Time - swap.htlcTxHash = lastUpdate.HtlcTxHash } return swap, nil