mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
test: detect segwit correctly, assume master branch.
Segwit was merged, but the strings changed between there and segwit4 (also, my BIP9 patch changed the output). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -29,10 +29,10 @@ while ! $CLI getinfo >/dev/null 2>&1; do
|
||||
done
|
||||
|
||||
# Make sure they have segwit support!
|
||||
if $CLI getblockchaininfo | grep -q '"witness"'; then :
|
||||
if $CLI getblockchaininfo | grep -q '"segwit"'; then :
|
||||
else
|
||||
echo This bitcoind does not have segwit support. >&2
|
||||
echo Please install one from https://github.com/sipa/bitcoin/tree/segwit4 >&2
|
||||
echo Please install a recent one >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user