mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
10d6e44a38
An alternative for establishing the customer-merchant channel connection.
13 lines
380 B
Bash
Executable File
13 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
channels=$(./docker-merchant-lightning-cli.sh listchannels | jq -cr '.channels | map(.short_channel_id) | unique')
|
|
printf "Channels: %s\n\r" $channels
|
|
|
|
for chanid in $(echo "${channels}" | jq -cr '.[]')
|
|
do
|
|
printf "Closing channel ID: %s\n\r" $chanid
|
|
./docker-merchant-lightning-cli.sh close $chanid
|
|
./docker-bitcoin-generate.sh 20 > /dev/null
|
|
done
|