rpcserver: add missing continue if link wasn't retrieved
In this commit, we avoid hitting a possible panic in the case that we were unable to retrieve the link of a channel from the HTLC switch while determining which channels should be used as routing hints for an invoice.
This commit is contained in:
1 file changed
+1
@@ -2254,6 +2254,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
||||
if err != nil {
|
||||
rpcsLog.Errorf("Unable to get link for "+
|
||||
"channel %v: %v", chanPoint, err)
|
||||
continue
|
||||
}
|
||||
|
||||
if !link.EligibleToForward() {
|
||||
|
||||
Reference in new issue
Block a user