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

Function option_channel_base

plugins/funder.c:1142–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140};
1141
1142static char *option_channel_base(const char *arg, struct funder_policy *policy)
1143{
1144 struct amount_msat amt;
1145
1146 if (!parse_amount_msat(&amt, arg, strlen(arg)))
1147 return tal_fmt(NULL, "Unable to parse amount '%s'", arg);
1148
1149 if (!policy->rates)
1150 policy->rates = default_lease_rates(policy);
1151
1152 if (!assign_overflow_u32(&policy->rates->channel_fee_max_base_msat,
1153 amt.millisatoshis)) /* Raw: conversion */
1154 return tal_fmt(NULL, "channel_fee_max_base_msat overflowed");
1155
1156 return NULL;
1157}
1158
1159static char *
1160option_channel_fee_proportional_thousandths_max(const char *arg,

Callers

nothing calls this directly

Calls 3

default_lease_ratesFunction · 0.85
assign_overflow_u32Function · 0.85
parse_amount_msatFunction · 0.50

Tested by

no test coverage detected