routing: create PathFindingConfig for global parameters

This commit is contained in:
Joost Jager
2019-06-20 12:03:45 +02:00
parent 377b7bf3ce
commit 34b264a3d8
9 changed files with 83 additions and 56 deletions

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.