routing: use complete route in test

Previously not all route fields were properly populated. Example: prev
and next hop maps.
This commit is contained in:
Joost Jager committed 2018-11-29 10:31:38 +01:00
1 parent 71037969b7
commit ac04729cff
1 file changed
+4 -3
+4 -3
View File
@@ -421,9 +421,10 @@ func TestChannelUpdateValidation(t *testing.T) {
},
}
route := &Route{
Hops: hops,
}
route := NewRouteFromHops(
lnwire.MilliSatoshi(10000), 100,
NewVertex(ctx.aliases["a"]), hops,
)
// Set up a channel update message with an invalid signature to be
// returned to the sender.