From 981fa68fe0b606a65e01dcc7ff9763bf89bc1fb3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 17 Apr 2019 17:03:01 +0930 Subject: [PATCH] tools/bench-gossipd.sh: fix routing. Channels have a htlc_minimum_msat of 10000, which is why we didn't find routes. This makes a significant speed drop: -routing_sec:26.940000-27.990000(27.616+/-0.39) +routing_sec:60.70 Signed-off-by: Rusty Russell --- tools/bench-gossipd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bench-gossipd.sh b/tools/bench-gossipd.sh index 241a2d056..ee03bd162 100755 --- a/tools/bench-gossipd.sh +++ b/tools/bench-gossipd.sh @@ -131,8 +131,9 @@ if [ -z "${TARGETS##* routing_sec *}" ]; then # shellcheck disable=SC2046 # shellcheck disable=SC2005 echo $(tr '{}' '\n' < "$DIR"/listnodes.json | grep nodeid | cut -d'"' -f4 | sort | head -n2) | while read -r from to; do + # Channels have htlc_min of 10000 msat. # shellcheck disable=SC2086 - /usr/bin/time --quiet --append -f %e $LCLI1 getroute $from 1 1 6 $to 2>&1 > /dev/null | print_stat routing_sec # FIXME: this shouldn't fail + /usr/bin/time --quiet --append -f %e $LCLI1 getroute $from 10000 1 6 $to 2>&1 > /dev/null | print_stat routing_sec done fi