MCPcopy Create free account
hub / github.com/ElementsProject/lightning / option_lease_weight_max

Function option_lease_weight_max

plugins/funder.c:1668–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1666}
1667
1668static char *option_lease_weight_max(struct command *cmd, const char *arg,
1669 bool check_only,
1670 struct funder_policy *policy)
1671{
1672 u16 fw;
1673 char *problem = u16_option(cmd, arg, false, &fw);
1674
1675 if (problem || check_only)
1676 return problem;
1677
1678 if (!policy->rates)
1679 policy->rates = default_lease_rates(policy);
1680 policy->rates->funding_weight = fw;
1681 return NULL;
1682}
1683
1684static char *amount_sat_or_u64_option(struct command *cmd,
1685 const char *arg,

Callers

nothing calls this directly

Calls 2

u16_optionFunction · 0.85
default_lease_ratesFunction · 0.85

Tested by

no test coverage detected