From bc7875864bc9e983e16397e752bec93f0a19d274 Mon Sep 17 00:00:00 2001 From: niftynei Date: Fri, 23 Apr 2021 16:59:08 -0500 Subject: [PATCH] contrib: if you're in dev mode, use dual-funding (with matching) If you're using the regtest node, turn on dual funding and automatically attempt to dual fund at a 100% match for every channel open that you do. --- contrib/startup_regtest.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/contrib/startup_regtest.sh b/contrib/startup_regtest.sh index 6502685b8..4df1e9fca 100755 --- a/contrib/startup_regtest.sh +++ b/contrib/startup_regtest.sh @@ -92,8 +92,16 @@ start_nodes() { # If we've configured to use developer, add dev options if $LIGHTNINGD --help | grep -q dev-fast-gossip; then - echo "dev-fast-gossip" >> "/tmp/l$i-$network/config" - echo "dev-bitcoind-poll=5" >> "/tmp/l$i-$network/config" + cat <<- EOF >> "/tmp/l$i-$network/config" + dev-fast-gossip + dev-bitcoind-poll=5 + experimental-dual-fund + funder-policy=match + funder-policy-mod=1000 + funder-min-their-funding=10000 + funder-per-channel-max=100000 + funder-fuzz-percent=0 + EOF fi