From f5881ad3df9c1af42717fa185a8daa96d141a317 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 18 Oct 2017 21:30:17 -0700 Subject: [PATCH] routing: only write a single edge as edges in test data are now directional --- routing/pathfind_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/routing/pathfind_test.go b/routing/pathfind_test.go index da503b5e..30515887 100644 --- a/routing/pathfind_test.go +++ b/routing/pathfind_test.go @@ -274,18 +274,6 @@ func parseTestGraph(path string) (*channeldb.ChannelGraph, func(), aliasMap, err FeeBaseMSat: lnwire.MilliSatoshi(edge.FeeBaseMsat), FeeProportionalMillionths: lnwire.MilliSatoshi(edge.FeeRate), } - - // As the graph itself is directed, we need to insert two edges - // into the graph: one from node1->node2 and one from - // node2->node1. A flag of 0 indicates this is the routing - // policy for the first node, and a flag of 1 indicates its the - // information for the second node. - edgePolicy.Flags = 0 - if err := graph.UpdateEdgePolicy(edgePolicy); err != nil { - return nil, nil, nil, err - } - - edgePolicy.Flags = 1 if err := graph.UpdateEdgePolicy(edgePolicy); err != nil { return nil, nil, nil, err }