MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetCommand

Method GetCommand

src/p2p/protocol.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72std::string CMessageHeader::GetCommand() const
73{
74 if (pchCommand[COMMAND_SIZE-1] == 0)
75 return std::string(pchCommand, pchCommand + strlen(pchCommand));
76 else
77 return std::string(pchCommand, pchCommand + COMMAND_SIZE);
78}
79
80bool CMessageHeader::IsValid() const
81{

Callers 2

ProcessMessagesFunction · 0.80
ProcessGetDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected