mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user