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

Method checkNode

core/router.go:291–297  ·  view source on GitHub ↗
(id state.NodeId)

Source from the content-addressed store, hash-verified

289}
290
291func (n *Nylon) checkNode(id state.NodeId) bool {
292 ncfg := n.TryGetNode(id)
293 if ncfg == nil {
294 n.router.log.Warn("received packet from unknown node", "from", id)
295 }
296 return ncfg != nil
297}
298
299// packet handlers
300func (n *Nylon) routerHandleRouteUpdate(node state.NodeId, update *protocol.Ny_Update) error {

Callers 2

Calls 1

TryGetNodeMethod · 0.80

Tested by

no test coverage detected