funder_policy: set default to 0

As we move to advertising liquidity, set the default to not have any
fuzz. This means we won't randomly reject an offer to buy liquidity.
This commit is contained in:
niftynei 2021-07-14 12:53:56 -05:00 committed by neil saitug
parent d6b302b52f
commit 9431984cef
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ default_funder_policy(const tal_t *ctx,
AMOUNT_SAT(UINT_MAX),
AMOUNT_SAT(10000),
AMOUNT_SAT(UINT_MAX),
5, /* fuzz_factor */
0, /* fuzz_factor */
AMOUNT_SAT(0), /* reserve_tank */
100);
}

View File

@ -1000,7 +1000,7 @@ def test_funder_options(node_factory, bitcoind):
assert funder_opts['per_channel_min'] == '10000000msat'
assert funder_opts['per_channel_max'] == '4294967295000msat'
assert funder_opts['reserve_tank'] == '0msat'
assert funder_opts['fuzz_percent'] == 5
assert funder_opts['fuzz_percent'] == 0
assert funder_opts['fund_probability'] == 100
# l2 funds a chanenl with us. We don't contribute