@@ -51,7 +51,7 @@ func newMockNode(id byte) *mockNode {
5151// nil, this node is considered to be the sender of the payment. The route
5252// parameter describes the remaining route from this node onwards. If route.next
5353// is nil, this node is the final hop.
54- func (m * mockNode ) fwd (from * mockNode , route * hop ) (htlcResult , error ) {
54+ func (m * mockNode ) fwd (from * mockNode , route * mockHop ) (htlcResult , error ) {
5555 next := route .next
5656
5757 // Get the incoming channel, if any.
@@ -258,24 +258,24 @@ type htlcResult struct {
258258 failure lnwire.FailureMessage
259259}
260260
261- // hop describes one hop of a route.
262- type hop struct {
261+ // mockHop describes one mockHop of a route.
262+ type mockHop struct {
263263 node * mockNode
264264 amtToFwd lnwire.MilliSatoshi
265- next * hop
265+ next * mockHop
266266}
267267
268268// sendHtlc sends out an htlc on the mock network and synchronously returns the
269269// final resolution of the htlc.
270270func (m * mockGraph ) sendHtlc (route * route.Route ) (htlcResult , error ) {
271- var next * hop
271+ var next * mockHop
272272
273273 // Convert the route into a structure that is suitable for recursive
274274 // processing.
275275 for i := len (route .Hops ) - 1 ; i >= 0 ; i -- {
276276 routeHop := route .Hops [i ]
277277 node := m .nodes [routeHop .PubKeyBytes ]
278- next = & hop {
278+ next = & mockHop {
279279 node : node ,
280280 next : next ,
281281 amtToFwd : routeHop .AmtToForward ,
@@ -284,7 +284,7 @@ func (m *mockGraph) sendHtlc(route *route.Route) (htlcResult, error) {
284284
285285 // Create the starting hop instance.
286286 source := m .nodes [route .SourcePubKey ]
287- next = & hop {
287+ next = & mockHop {
288288 node : source ,
289289 next : next ,
290290 amtToFwd : route .TotalAmount ,
0 commit comments