From 3311580c62e41a055f3e0cd5310e9a280d0271ec Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 8 Aug 2015 15:02:50 +0930 Subject: [PATCH] scripts/test.sh: fix bitcoin case. Now we use locktime, bitcoin needs delay too. Signed-off-by: Rusty Russell --- test-cli/scripts/test.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test-cli/scripts/test.sh b/test-cli/scripts/test.sh index 646a710f6..8a1bd8e9c 100755 --- a/test-cli/scripts/test.sh +++ b/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