Skip to content

Commit

Permalink
topology: listincoming: don't fail if listpeerchannels lacks SCID
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev committed Aug 22, 2023
1 parent a038d76 commit 318bcb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ static struct command_result *findinboundliquidity(struct command *cmd,
const jsmntok_t *scid_tok, *receivable_tok;
struct chanliquidity chanliquidity;
scid_tok = json_get_member(buf, channel, "short_channel_id");
assert(scid_tok);
/* FIXME: if no scid, use remote alias */
if(!scid_tok)
continue;
json_to_short_channel_id(buf, scid_tok, &chanliquidity.scid);
receivable_tok = json_get_member(buf, channel, "receivable_msat");
assert(receivable_tok);
Expand Down

0 comments on commit 318bcb2

Please sign in to comment.