mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: allow outgoing_scid without outgoing amount.
This (will) happen if they ask is to forward to an unknown scid. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2779,7 +2779,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");
|
||||
|
||||
Reference in New Issue
Block a user