mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
channeld: use u64 fo htlc_minimum_msat
As per spec.
This commit is contained in:
parent
0ae1d03513
commit
66ca2a333f
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue