mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02:00
routing: allow nil maps for ignored edges and nodes
This allows removing a lot of empty map initialization code and makes the code more readable.
This commit is contained in:
@ -1949,9 +1949,6 @@ func TestFindPathFeeWeighting(t *testing.T) {
|
||||
t.Fatalf("unable to fetch source node: %v", err)
|
||||
}
|
||||
|
||||
ignoreVertex := make(map[Vertex]struct{})
|
||||
ignoreEdge := make(map[EdgeLocator]struct{})
|
||||
|
||||
amt := lnwire.MilliSatoshi(100)
|
||||
|
||||
target := ctx.aliases["luoji"]
|
||||
@ -1967,9 +1964,7 @@ func TestFindPathFeeWeighting(t *testing.T) {
|
||||
graph: ctx.graph,
|
||||
},
|
||||
&RestrictParams{
|
||||
IgnoredNodes: ignoreVertex,
|
||||
IgnoredEdges: ignoreEdge,
|
||||
FeeLimit: noFeeLimit,
|
||||
FeeLimit: noFeeLimit,
|
||||
},
|
||||
sourceNode, target, amt,
|
||||
)
|
||||
|
Reference in New Issue
Block a user