move watchtower to a plugin.
remove watchtower dialog in qt
This commit is contained in:
@@ -458,12 +458,12 @@ if [[ $1 == "watchtower" ]]; then
|
||||
echo "alice pays bob again"
|
||||
invoice2=$($bob add_request 0.01 -m "invoice2" | jq -r ".lightning_invoice")
|
||||
$alice lnpay $invoice2
|
||||
alice_ctn=$($alice list_channels | jq '.[0].local_ctn')
|
||||
bob_ctn=$($bob list_channels | jq '.[0].local_ctn')
|
||||
msg="waiting until watchtower is synchronized"
|
||||
# watchtower needs to be at latest revoked ctn
|
||||
while watchtower_ctn=$($carol get_watchtower_ctn $channel) && [[ $watchtower_ctn != $((alice_ctn-1)) ]]; do
|
||||
while watchtower_ctn=$($bob get_watchtower_ctn $channel) && [[ $watchtower_ctn != $((bob_ctn-1)) ]]; do
|
||||
sleep 0.1
|
||||
printf "$msg $alice_ctn $watchtower_ctn\r"
|
||||
printf "$msg $bob_ctn $watchtower_ctn\r"
|
||||
done
|
||||
printf "\n"
|
||||
echo "stopping alice and bob"
|
||||
|
||||
Reference in New Issue
Block a user