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.
This commit is contained in:
niftynei
2021-04-23 16:59:08 -05:00
committed by Rusty Russell
parent 2538956b4d
commit bc7875864b

View File

@@ -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