| 1604 | }; |
| 1605 | |
| 1606 | static char *option_channel_base(struct command *cmd, const char *arg, |
| 1607 | bool check_only, struct funder_policy *policy) |
| 1608 | { |
| 1609 | struct amount_msat amt; |
| 1610 | u32 cfmbm; |
| 1611 | |
| 1612 | if (!parse_amount_msat(&amt, arg, strlen(arg))) |
| 1613 | return tal_fmt(tmpctx, "Unable to parse amount '%s'", arg); |
| 1614 | |
| 1615 | if (!assign_overflow_u32(&cfmbm, amt.millisatoshis)) /* Raw: conversion */ |
| 1616 | return tal_fmt(tmpctx, "channel_fee_max_base_msat overflowed"); |
| 1617 | |
| 1618 | if (!check_only) { |
| 1619 | if (!policy->rates) |
| 1620 | policy->rates = default_lease_rates(policy); |
| 1621 | policy->rates->channel_fee_max_base_msat = cfmbm; |
| 1622 | } |
| 1623 | |
| 1624 | return NULL; |
| 1625 | } |
| 1626 | |
| 1627 | static char * |
| 1628 | option_channel_fee_proportional_thousandths_max(struct command *cmd, |
nothing calls this directly
no test coverage detected