Browse Source

gossipd: hear no wumbo.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
trytravis
Rusty Russell 6 years ago
parent
commit
29b672b117
  1. 6
      gossipd/routing.c

6
gossipd/routing.c

@ -1096,6 +1096,12 @@ bool routing_add_channel_update(struct routing_state *rstate,
htlc_maximum_msat = chan->satoshis * 1000;
}
/* FIXME: https://github.com/lightningnetwork/lightning-rfc/pull/512
* says we MUST NOT exceed 2^32-1, but c-lightning did, so just trim
* rather than rejecting. */
if (htlc_maximum_msat > rstate->chainparams->max_payment_msat)
htlc_maximum_msat = rstate->chainparams->max_payment_msat;
direction = channel_flags & 0x1;
set_connection_values(chan, direction, fee_base_msat,
fee_proportional_millionths, expiry,

Loading…
Cancel
Save