MCPcopy Create free account
hub / github.com/encodeous/nylon / neighRouteProto

Function neighRouteProto

core/ipc_handler.go:350–355  ·  view source on GitHub ↗
(route state.NeighRoute)

Source from the content-addressed store, hash-verified

348}
349
350func neighRouteProto(route state.NeighRoute) *protocol.NeighRoute {
351 return &protocol.NeighRoute{
352 PubRoute: pubRouteProto(route.PubRoute),
353 ExpireAtUnix: route.ExpireAt.Unix(),
354 }
355}
356
357func selRouteProto(route state.SelRoute) *protocol.SelRoute {
358 retractedBy := make([]string, 0, len(route.RetractedBy))

Callers 1

buildNeighRoutesFunction · 0.85

Calls 1

pubRouteProtoFunction · 0.85

Tested by

no test coverage detected