Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions htlcswitch/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,9 @@ func (s *Switch) getLinkByMapping(pkt *htlcPacket) (ChannelLink, error) {
// forwardingIndex.
link, ok := s.forwardingIndex[baseScid]
if !ok {
log.Debugf("Forwarding index not found using "+
"baseScid=%v", baseScid)

// Link not found, bail.
return nil, ErrChannelLinkNotFound
}
Expand All @@ -2291,6 +2294,9 @@ func (s *Switch) getLinkByMapping(pkt *htlcPacket) (ChannelLink, error) {
// negotiated. We'll fetch the link and return it.
link, ok := s.forwardingIndex[chanID]
if !ok {
log.Debugf("Forwarding index not found using "+
"chanID=%v", chanID)

// The link wasn't found, bail out.
return nil, ErrChannelLinkNotFound
}
Expand All @@ -2301,6 +2307,9 @@ func (s *Switch) getLinkByMapping(pkt *htlcPacket) (ChannelLink, error) {
// Fetch the link whose internal SCID is baseScid.
link, ok := s.forwardingIndex[baseScid]
if !ok {
log.Debugf("Forwarding index not found using baseScid=%v",
baseScid)

// Link wasn't found, bail out.
return nil, ErrChannelLinkNotFound
}
Expand Down
3 changes: 2 additions & 1 deletion lntest/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,8 @@ func (h *HarnessTest) completePaymentRequestsAssertStatus(hn *node.HarnessNode,
h.AssertPaymentStatusFromStream(stream, status)

case <-timer:
require.Fail(h, "timeout", "waiting payment results timeout")
require.Failf(h, "timeout", "%s: waiting payment results "+
"timeout", hn.Name())
}
}

Expand Down
Loading