From 4d84a436f587e3549d19db051006961149382272 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 17 Apr 2019 17:05:33 +0930 Subject: [PATCH] gossipd: temporarily disable fuzz in routing. This allows precise comparison between Dijkstra and Bellman-Ford without worrying about fuzz. Signed-off-by: Rusty Russell --- gossipd/routing.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 2d20ebb90..e44f7a94a 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -550,17 +550,6 @@ static void bfg_one_edge(struct node *node, double fee_scale = 1.0; const struct half_chan *c = &chan->half[idx]; - if (fuzz != 0.0) { - u64 h = siphash24(base_seed, &chan->scid, sizeof(chan->scid)); - - /* Scale fees for this channel */ - /* rand = (h / UINT64_MAX) random number between 0.0 -> 1.0 - * 2*fuzz*rand random number between 0.0 -> 2*fuzz - * 2*fuzz*rand - fuzz random number between -fuzz -> +fuzz - */ - fee_scale = 1.0 + (2.0 * fuzz * h / UINT64_MAX) - fuzz; - } - for (h = 0; h < max_hops; h++) { struct node *src; struct amount_msat total, risk;