From 66ca2a333fb3e4de7fdd95cdea7320afe8df6946 Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Mon, 15 Oct 2018 17:36:45 -0700 Subject: [PATCH] channeld: use u64 fo `htlc_minimum_msat` As per spec. --- channeld/channeld.c | 2 +- common/initial_channel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/channeld/channeld.c b/channeld/channeld.c index ac3240ba8..d3ec5988a 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -2339,7 +2339,7 @@ static void handle_offer_htlc(struct peer *peer, const u8 *inmsg) goto failed; case CHANNEL_ERR_HTLC_BELOW_MINIMUM: failcode = WIRE_AMOUNT_BELOW_MINIMUM; - failmsg = tal_fmt(inmsg, "HTLC too small (%u minimum)", + failmsg = tal_fmt(inmsg, "HTLC too small (%"PRIu64" minimum)", htlc_minimum_msat(peer->channel, REMOTE)); goto failed; case CHANNEL_ERR_TOO_MANY_HTLCS: diff --git a/common/initial_channel.h b/common/initial_channel.h index a3ad47454..c3ea2fba3 100644 --- a/common/initial_channel.h +++ b/common/initial_channel.h @@ -109,7 +109,7 @@ static inline u64 channel_reserve_msat(const struct channel *channel, * * `htlc_minimum_msat` indicates the smallest value HTLC this node will accept. */ -static inline u32 htlc_minimum_msat(const struct channel *channel, +static inline u64 htlc_minimum_msat(const struct channel *channel, enum side recipient) { return channel->config[recipient]->htlc_minimum_msat;