Changeset View
Changeset View
Standalone View
Standalone View
src/protocol.cpp
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | switch (GetKind()) { | ||||
case MSG_TX: | case MSG_TX: | ||||
return cmd.append(NetMsgType::TX); | return cmd.append(NetMsgType::TX); | ||||
case MSG_BLOCK: | case MSG_BLOCK: | ||||
return cmd.append(NetMsgType::BLOCK); | return cmd.append(NetMsgType::BLOCK); | ||||
case MSG_FILTERED_BLOCK: | case MSG_FILTERED_BLOCK: | ||||
return cmd.append(NetMsgType::MERKLEBLOCK); | return cmd.append(NetMsgType::MERKLEBLOCK); | ||||
case MSG_CMPCT_BLOCK: | case MSG_CMPCT_BLOCK: | ||||
return cmd.append(NetMsgType::CMPCTBLOCK); | return cmd.append(NetMsgType::CMPCTBLOCK); | ||||
case MSG_AVA_PROOF: | |||||
return cmd.append(NetMsgType::AVAPROOF); | |||||
default: | default: | ||||
throw std::out_of_range( | throw std::out_of_range( | ||||
strprintf("CInv::GetCommand(): type=%d unknown type", type)); | strprintf("CInv::GetCommand(): type=%d unknown type", type)); | ||||
} | } | ||||
} | } | ||||
std::string CInv::ToString() const { | std::string CInv::ToString() const { | ||||
try { | try { | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |