| 64 | } |
| 65 | |
| 66 | static struct funder_policy * |
| 67 | new_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 | |
| 97 | struct funder_policy * |
| 98 | default_funder_policy(const tal_t *ctx, |
no outgoing calls
no test coverage detected