MCPcopy Create free account
hub / github.com/DNAProject/DNA / NotFoundHandle

Function NotFoundHandle

p2pserver/message/utils/msg_handler.go:220–223  ·  view source on GitHub ↗

NotFoundHandle handles the not found message from peer

(data *msgTypes.MsgPayload, p2p p2p.P2P, pid *evtActor.PID, args ...interface{})

Source from the content-addressed store, hash-verified

218
219// NotFoundHandle handles the not found message from peer
220func NotFoundHandle(data *msgTypes.MsgPayload, p2p p2p.P2P, pid *evtActor.PID, args ...interface{}) {
221 var notFound = data.Payload.(*msgTypes.NotFound)
222 log.Debug("[p2p]receive notFound message, hash is ", notFound.Hash)
223}
224
225// TransactionHandle handles the transaction message from peer
226func TransactionHandle(data *msgTypes.MsgPayload, p2p p2p.P2P, pid *evtActor.PID, args ...interface{}) {

Callers 1

TestNotFoundHandleFunction · 0.85

Calls 1

DebugFunction · 0.92

Tested by 1

TestNotFoundHandleFunction · 0.68