Browse Source

scripts/test.sh: fix bitcoin case.

Now we use locktime, bitcoin needs delay too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
3311580c62
  1. 16
      test-cli/scripts/test.sh

16
test-cli/scripts/test.sh

@ -28,13 +28,17 @@ send_after_delay()
exit 1
fi
done
# Confirm them.
scripts/generate-block.sh
echo Waiting for CSV timeout. >&2
sleep 61
# Move median time, for sure!
for i in `seq 11`; do scripts/generate-block.sh; done
fi
# Bitcoin still respects lock_time, which is used for HTLCs.
# Confirm them.
scripts/generate-block.sh
echo Waiting for CSV timeout. >&2
sleep 61
# Move median time, for sure!
for i in `seq 11`; do scripts/generate-block.sh; done
for tx; do
$CLI sendrawtransaction $tx
done

Loading…
Cancel
Save