From 9431984cef922b7e2f37525b5800169898a966d8 Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 14 Jul 2021 12:53:56 -0500 Subject: [PATCH] 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. --- plugins/funder_policy.c | 2 +- tests/test_opening.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/funder_policy.c b/plugins/funder_policy.c index 79901fb75..69dabf9bd 100644 --- a/plugins/funder_policy.c +++ b/plugins/funder_policy.c @@ -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); } diff --git a/tests/test_opening.py b/tests/test_opening.py index b3a203797..96e32586c 100644 --- a/tests/test_opening.py +++ b/tests/test_opening.py @@ -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