1
0

move watchtower to a plugin.

remove watchtower dialog in qt
This commit is contained in:
ThomasV
2024-12-20 14:02:54 +01:00
parent 7113cec4c7
commit 29a8c41025
14 changed files with 404 additions and 426 deletions

View File

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