Skip to content

Commit 1ab73a6

Browse files
committed
loopout: ignore saved HTLC txid
If a reorg happens, the saved txid prevents loop-out from discoveing new txid.
1 parent 19ad091 commit 1ab73a6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func testLoopOutResume(t *testing.T, confs uint32, expired, preimageRevealed,
291291

292292
// Expect client to register for our expected number of confirmations.
293293
confIntent := ctx.Context.AssertRegisterConf(
294-
preimageRevealed, int32(confs),
294+
false, int32(confs),
295295
)
296296

297297
htlc, err := utils.GetHtlc(

loopout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ func resumeLoopOutSwap(cfg *swapConfig, pend *loopdb.LoopOut,
330330
} else {
331331
swap.state = lastUpdate.State
332332
swap.lastUpdateTime = lastUpdate.Time
333-
swap.htlcTxHash = lastUpdate.HtlcTxHash
334333
}
335334

336335
return swap, nil

0 commit comments

Comments
 (0)