mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
tests: fix check for segwit support.
"help unknowncommand" exits with 0, unfortunately. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b4c5b5b578
commit
fd22b97e24
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue