aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorShashwat <shaavan.github@gmail.com>2022-01-29 18:58:07 +0530
committerShashwat <shaavan.github@gmail.com>2022-04-16 16:57:26 +0530
commite71c51b27d420fbd6cc0a36f62e63e190e13473a (patch)
tree1f4d6d2b7c1e6291c88c0db24e4c97efcae0159b /src/net.h
parent2b09593bddb0a93aebf84e5f43cdb4d5282c7984 (diff)
downloadbitcoin-e71c51b27d420fbd6cc0a36f62e63e190e13473a.tar.xz
refactor: rename command -> message type in comments in the src/net* files
Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index b5b1e82f79..88efa4a248 100644
--- a/src/net.h
+++ b/src/net.h
@@ -234,7 +234,7 @@ extern Mutex g_maplocalhost_mutex;
extern std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
extern const std::string NET_MESSAGE_TYPE_OTHER;
-typedef std::map<std::string, uint64_t> mapMsgTypeSize; //command, total bytes
+using mapMsgTypeSize = std::map</* message type */ std::string, /* total bytes */ uint64_t>;
class CNodeStats
{
@@ -298,7 +298,7 @@ public:
/** The TransportDeserializer takes care of holding and deserializing the
* network receive buffer. It can deserialize the network buffer into a
- * transport protocol agnostic CNetMessage (command & payload)
+ * transport protocol agnostic CNetMessage (message type & payload)
*/
class TransportDeserializer {
public: