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:
@@ -10,7 +10,7 @@ INIT=$1
|
||||
if [ -n "$INIT" ]; then
|
||||
# To activate segwit via BIP9, we need at least 432 blocks!
|
||||
$CLI generate 432
|
||||
if $CLI getblockchaininfo | tr -s '\012\011 ' ' ' | grep -q '{ "id": "witness", "status": "active" }'; then :
|
||||
if $CLI getblockchaininfo | tr -s '\012\011 ' ' ' | grep -q '"segwit": { "status": "active",'; then :
|
||||
else
|
||||
echo "Segwit not activated after 432 blocks?" >&2
|
||||
$CLI getblockchaininfo >&2
|
||||
|
||||
Reference in New Issue
Block a user