mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
channeld: get htlc_maximum_msat from lightningd.
We used to calculate it ourselves. Unfortunately this needs to be done in several places, since new_channel() isn't used to fully create a channel in the case of dual funding :( Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -317,7 +317,7 @@ struct channel *new_unsaved_channel(struct peer *peer,
|
||||
* capacity the reserve we have to keep.
|
||||
* FIXME: does this need fuzz?
|
||||
*/
|
||||
static struct amount_msat htlc_max_possible_send(const struct channel *channel)
|
||||
struct amount_msat htlc_max_possible_send(const struct channel *channel)
|
||||
{
|
||||
struct amount_sat lower_bound;
|
||||
struct amount_msat lower_bound_msat;
|
||||
|
||||
Reference in New Issue
Block a user