Skip to content

Commit

Permalink
lightningd: allow outgoing_scid without outgoing amount.
Browse files Browse the repository at this point in the history
This (will) happen if they ask is to forward to an unknown scid.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jun 21, 2022
1 parent c541cd6 commit 0dc874d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,7 @@ void json_format_forwarding_object(struct json_stream *response,
"in_msatoshi", "in_msat");

/* These can be unset (aka zero) if we failed before channel lookup */
if (cur->channel_out.u64 != 0) {
if (!amount_msat_eq(cur->msat_out, AMOUNT_MSAT(0))) {
json_add_amount_msat_compat(response,
cur->msat_out,
"out_msatoshi", "out_msat");
Expand Down

0 comments on commit 0dc874d

Please sign in to comment.