1
0

regtest: make test_fw_fail morer reliable

This commit is contained in:
ThomasV
2025-06-01 13:42:26 +02:00
parent ae7a1073cf
commit 40de52e829

View File

@@ -578,11 +578,17 @@ if [[ $1 == "fw_fail_htlc" ]]; then
exit 1
fi
$carol stop
$bob close_channel $chan_id2 --force
ctx_id=$($bob close_channel $chan_id2 --force)
new_blocks 1
sleep 1
new_blocks 150 # cltv before bob can broadcast
sleep 5 # give bob time to process blocks and broadcast
# index of htlc
if [ $TEST_ANCHOR_CHANNELS = True ] ; then
output_index=2
else
output_index=0
fi
wait_until_spent $ctx_id $output_index
new_blocks 1 # confirm 2nd stage.
sleep 1
new_blocks 100 # deep