1
0

lnwatcher: remove rearly return that breaks accounting_addresses

This reverts 6ffaa55.
Also, in regtests, add a check that fails if accounting_addresses are broken.
This commit is contained in:
ThomasV
2025-12-04 10:18:30 +01:00
parent 32c677bed0
commit 9b72dc297b
2 changed files with 6 additions and 3 deletions

View File

@@ -344,6 +344,12 @@ if [[ $1 == "swapserver_forceclose" ]]; then
wait_until_spent $ctx_id $output_index
new_blocks 144
wait_for_balance bob 0.999
# check that the closing tx is in alice's onchain_history. Since this tx does not
# touch alice's wallet addresses, this test requires accounting_addresses to be set
if [[ ! $($alice onchain_history| jq --arg txid $ctx_id '.[]|select(.txid == $txid)') ]]; then
echo "accounting_address not set"
exit 1
fi
fi