mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
check: make (successful) tests less noisy.
Particularly, don't show the output for generating 432 blocks! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
dc0efc5c52
commit
7b1187d446
@ -9,7 +9,7 @@ INIT=$1
|
|||||||
# Initially we need 100 blocks so coinbase matures, giving us funds.
|
# Initially we need 100 blocks so coinbase matures, giving us funds.
|
||||||
if [ -n "$INIT" ]; then
|
if [ -n "$INIT" ]; then
|
||||||
# To activate segwit via BIP9, we need at least 432 blocks!
|
# To activate segwit via BIP9, we need at least 432 blocks!
|
||||||
$CLI generate 432
|
$CLI generate 432 > /dev/null
|
||||||
if $CLI getblockchaininfo | tr -s '\012\011 ' ' ' | grep -q '"segwit": { "status": "active",'; then :
|
if $CLI getblockchaininfo | tr -s '\012\011 ' ' ' | grep -q '"segwit": { "status": "active",'; then :
|
||||||
else
|
else
|
||||||
echo "Segwit not activated after 432 blocks?" >&2
|
echo "Segwit not activated after 432 blocks?" >&2
|
||||||
@ -17,5 +17,5 @@ if [ -n "$INIT" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
$CLI generate 1
|
$CLI generate 1 > /dev/null
|
||||||
fi
|
fi
|
||||||
|
@ -497,7 +497,6 @@ fi
|
|||||||
check_status $A_AMOUNT $A_FEE '{ "msatoshis" : '$HTLC_AMOUNT', "expiry" : { "block" : '$EXPIRY' }, "rhash" : "'$RHASH'" } ' $B_AMOUNT $B_FEE ""
|
check_status $A_AMOUNT $A_FEE '{ "msatoshis" : '$HTLC_AMOUNT', "expiry" : { "block" : '$EXPIRY' }, "rhash" : "'$RHASH'" } ' $B_AMOUNT $B_FEE ""
|
||||||
|
|
||||||
if [ -n "$STEAL" ]; then
|
if [ -n "$STEAL" ]; then
|
||||||
$LCLI1 dev-signcommit $ID2 >&2
|
|
||||||
STEAL_TX=`$LCLI1 dev-signcommit $ID2 | cut -d\" -f4`
|
STEAL_TX=`$LCLI1 dev-signcommit $ID2 | cut -d\" -f4`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user