1
0

regtest: fix varname in wait_until_htlcs_settled

(this was not affecting the tests)
This commit is contained in:
ThomasV
2024-02-22 09:40:59 +01:00
parent 7da3613b12
commit 32775c1b5d

View File

@@ -19,7 +19,7 @@ function wait_until_htlcs_settled()
{
msg="wait until $1's local_unsettled_sent is zero"
cmd="./run_electrum --regtest -D /tmp/$1"
while unsettled=$($alice list_channels | jq '.[] | .local_unsettled_sent') && [ $unsettled != "0" ]; do
while unsettled=$($cmd list_channels | jq '.[] | .local_unsettled_sent') && [ $unsettled != "0" ]; do
sleep 1
msg="$msg."
printf "$msg\r"