mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: ignore saved HTLC txid
If a reorg happens, the saved txid prevents loop-out from discoveing new txid.
This commit is contained in:
parent
19ad091ff3
commit
1ab73a6272
2 changed files with 1 additions and 2 deletions
|
|
@ -291,7 +291,7 @@ func testLoopOutResume(t *testing.T, confs uint32, expired, preimageRevealed,
|
||||||
|
|
||||||
// Expect client to register for our expected number of confirmations.
|
// Expect client to register for our expected number of confirmations.
|
||||||
confIntent := ctx.Context.AssertRegisterConf(
|
confIntent := ctx.Context.AssertRegisterConf(
|
||||||
preimageRevealed, int32(confs),
|
false, int32(confs),
|
||||||
)
|
)
|
||||||
|
|
||||||
htlc, err := utils.GetHtlc(
|
htlc, err := utils.GetHtlc(
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,6 @@ func resumeLoopOutSwap(cfg *swapConfig, pend *loopdb.LoopOut,
|
||||||
} else {
|
} else {
|
||||||
swap.state = lastUpdate.State
|
swap.state = lastUpdate.State
|
||||||
swap.lastUpdateTime = lastUpdate.Time
|
swap.lastUpdateTime = lastUpdate.Time
|
||||||
swap.htlcTxHash = lastUpdate.HtlcTxHash
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return swap, nil
|
return swap, nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue