routing: create PathFindingConfig for global parameters

This commit is contained in:
Joost Jager committed 2019-07-18 15:49:25 +02:00
1 parent 377b7bf3ce
commit 34b264a3d8
9 files changed
+83 -56

No files matched your search

+3 -2
View File
@@ -14,8 +14,9 @@ func TestRequestRoute(t *testing.T) {
)
findPath := func(g *graphParams, r *RestrictParams,
source, target route.Vertex, amt lnwire.MilliSatoshi) (
[]*channeldb.ChannelEdgePolicy, error) {
cfg *PathFindingConfig, source, target route.Vertex,
amt lnwire.MilliSatoshi) ([]*channeldb.ChannelEdgePolicy,
error) {
// We expect find path to receive a cltv limit excluding the
// final cltv delta.