From 62e1423968dedf54988f4c09bd2b670b276d4df0 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 23 Apr 2019 23:45:09 +0200 Subject: [PATCH] fixup! tools/bench-gossipd.sh: make it work (where possible) with DEVELOPER=0 --- tools/bench-gossipd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/bench-gossipd.sh b/tools/bench-gossipd.sh index a9462e541..9878a0ec4 100755 --- a/tools/bench-gossipd.sh +++ b/tools/bench-gossipd.sh @@ -79,7 +79,7 @@ fi DEVELOPER=$(grep '^DEVELOPER=' config.vars | cut -d= -f2-) -if [ $DEVELOPER = 1 ]; then +if [ "$DEVELOPER" = 1 ]; then LIGHTNINGD="./lightningd/lightningd --network=regtest --dev-gossip-time=1550513768 --dev-unknown-channel-satoshis=100000" else # Means we can't do the peer_read_all test properly, since it will time out. @@ -117,7 +117,7 @@ if [ -z "${TARGETS##* vsz_kb *}" ]; then fi # How long does rewriting the store take? -if [ -z "${TARGETS##* store_rewrite_sec *}" -a "$DEVELOPER" = 1 ]; then +if [ -z "${TARGETS##* store_rewrite_sec *}" ] && [ "$DEVELOPER" = 1 ]; then # shellcheck disable=SC2086 /usr/bin/time --append -f %e $LCLI1 dev-compact-gossip-store 2>&1 > /dev/null | print_stat store_rewrite_sec fi @@ -154,7 +154,7 @@ fi # Needs DEVELOPER otherwise timestamps will be more than 2 weeks old and it # will ignore gossip. -if [ -z "${TARGETS##* peer_read_all_sec *}" -a "$DEVELOPER" = 1 ]; then +if [ -z "${TARGETS##* peer_read_all_sec *}" ] && [ "$DEVELOPER" = 1 ]; then # shellcheck disable=SC2086 $LCLI1 stop > /dev/null sleep 5