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

Function option_lease_weight_max

plugins/funder.c:1709–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1707}
1708
1709static char *option_lease_weight_max(struct command *cmd, const char *arg,
1710 bool check_only,
1711 struct funder_policy *policy)
1712{
1713 u16 fw;
1714 char *problem = u16_option(cmd, arg, false, &fw);
1715
1716 if (problem || check_only)
1717 return problem;
1718
1719 if (!policy->rates)
1720 policy->rates = default_lease_rates(policy);
1721 policy->rates->funding_weight = fw;
1722 return NULL;
1723}
1724
1725static char *amount_sat_or_u64_option(struct command *cmd,
1726 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