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

@@ -110,7 +110,7 @@ class TestLightningWatchtower(TestLightning):
'watchtower_url': 'http://wtuser:wtpassword@127.0.0.1:12345',
},
'carol':{
'run_watchtower': 'true',
'enable_plugin_watchtower': 'true',
'watchtower_user': 'wtuser',
'watchtower_password': 'wtpassword',
'watchtower_port': '12345',

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"