MCPcopy Index your code
hub / github.com/MetaMask/torus-node / ProcessMessage

Method ProcessMessage

mapping/mapping.go:24–165  ·  view source on GitHub ↗

ProcessMessage is called when the transport for the node receives a message via direct send. It works similar to a router, processing different messages differently based on their associated method. Each method handler's code path consists of parsing the message -> state checks -> logic -> state upd

(senderDetails NodeDetails, mappingMessage MappingMessage)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ReceiveMethod · 0.45
ReceiveMethod · 0.45

Calls 15

getMappingIDMethod · 0.95
IncrementCounterFunction · 0.92
CreateMappingMessageFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80
NodeExistsMethod · 0.80
SendBroadcastMethod · 0.65
GetMethod · 0.65
IDMethod · 0.65
SetMethod · 0.65

Tested by 2

ReceiveMethod · 0.36
ReceiveMethod · 0.36