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

Function new_funder_policy

plugins/funder_policy.c:66–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static struct funder_policy *
67new_funder_policy(const tal_t *ctx,
68 enum funder_opt opt,
69 u64 policy_mod,
70 struct amount_sat min_their_funding,
71 struct amount_sat max_their_funding,
72 struct amount_sat per_channel_min,
73 struct amount_sat per_channel_max,
74 u32 fuzz_factor,
75 struct amount_sat reserve_tank,
76 u32 fund_probability,
77 bool leases_only,
78 struct lease_rates *rates)
79{
80 struct funder_policy *policy = tal(ctx, struct funder_policy);
81
82 policy->opt = opt;
83 policy->mod = policy_mod;
84 policy->min_their_funding = min_their_funding;
85 policy->max_their_funding = max_their_funding;
86 policy->per_channel_min = per_channel_min;
87 policy->per_channel_max = per_channel_max;
88 policy->fuzz_factor = fuzz_factor;
89 policy->reserve_tank = reserve_tank;
90 policy->fund_probability = fund_probability;
91 policy->leases_only = leases_only;
92 policy->rates = rates;
93
94 return policy;
95}
96
97struct funder_policy *
98default_funder_policy(const tal_t *ctx,

Callers 1

default_funder_policyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected