mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 03:12:54 +02:00
Merge pull request #3876 from breez/allow-timeouted-initiated-htlc
contractcourt: keep channels with timed-out initiated htlcs.
This commit is contained in:
@@ -336,6 +336,10 @@ func TestSwitchForward(t *testing.T) {
|
||||
t.Fatal("wrong amount of circuits")
|
||||
}
|
||||
|
||||
if !s.IsForwardedHTLC(bobChannelLink.ShortChanID(), 0) {
|
||||
t.Fatal("htlc should be identified as forwarded")
|
||||
}
|
||||
|
||||
// Create settle request pretending that bob link handled the add htlc
|
||||
// request and sent the htlc settle request back. This request should
|
||||
// be forwarder back to Alice link.
|
||||
@@ -2120,6 +2124,9 @@ func TestSwitchSendPayment(t *testing.T) {
|
||||
t.Fatalf("unable obfuscate failure: %v", err)
|
||||
}
|
||||
|
||||
if s.IsForwardedHTLC(aliceChannelLink.ShortChanID(), update.ID) {
|
||||
t.Fatal("htlc should be identified as not forwarded")
|
||||
}
|
||||
packet := &htlcPacket{
|
||||
outgoingChanID: aliceChannelLink.ShortChanID(),
|
||||
outgoingHTLCID: 0,
|
||||
|
Reference in New Issue
Block a user