From fd22b97e24eb75197e36402d9087b09f385e5387 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 12 Apr 2016 14:42:22 +0930 Subject: [PATCH] tests: fix check for segwit support. "help unknowncommand" exits with 0, unfortunately. Signed-off-by: Rusty Russell --- test-cli/scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-cli/scripts/setup.sh b/test-cli/scripts/setup.sh index c6b755017..99327d3c3 100755 --- a/test-cli/scripts/setup.sh +++ b/test-cli/scripts/setup.sh @@ -29,7 +29,7 @@ while ! $CLI getinfo >/dev/null 2>&1; do done # Make sure they have segwit support! -if $CLI help createwitnessaddress > /dev/null 2>&1; then : +if $CLI getblockchaininfo | grep -q '"witness"'; then : else echo This bitcoind does not have segwit support. >&2 echo Please install one from https://github.com/sipa/bitcoin/tree/segwit4 >&2