<p>Yes, <code>pchCommand</code> is the name of the variable for the message name in the network message header.</p>
<p>The naming of this variable uses <a href="https://en.wikipedia.org/wiki/Hungarian_notation" rel="nofollow noreferrer">Hungarian Notation</a>. <code>p</code> indicates it is a pointer, <code>ch</code> indicates that it is char(s), and the variable name begins with an uppercase. So the type for this variable is a pointer to chars, which is a string. Bitcoin Core no longer actively uses this notation, although it is still around in things that Satoshi wrote originally, which <code>pchCommand</code> is.</p>

CC BY-SA 4.0
2023-12-21T01:24:05.190Z
2023-12-21T01:31:09.727Z
2023-12-21T01:31:09.727Z
Ava Chow
<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki" rel="nofollow noreferrer">BIP152</a> and <a href="https://github.com/bitcoin/bips/blob/master/bip-0130.mediawiki" rel="nofollow noreferrer">BIP130</a> are using this term. What does it mean? Command name in message header?</p>

<bitcoin-core-development><terminology><block-header><compact-blocks>
What is pchCommand?
Qwerty M3
# What is pchCommand?

(Asked by: username_0 on 2023-12-21)

[BIP152](https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki) and [BIP130](https://github.com/bitcoin/bips/blob/master/bip-0130.mediawiki) are using this term. What does it mean? Command name in message header?

**Tags:** bitcoin-core-development, terminology, block-header, compact-blocks


---

## 1 answers

### Answer by username_1 on 2023-12-21. Score: 2 | Accepted answer

Yes, `pchCommand` is the name of the variable for the message name in the network message header.

The naming of this variable uses [Hungarian Notation](https://en.wikipedia.org/wiki/Hungarian_notation). `p` indicates it is a pointer, `ch` indicates that it is char(s), and the variable name begins with an uppercase. So the type for this variable is a pointer to chars, which is a string. Bitcoin Core no longer actively uses this notation, although it is still around in things that Satoshi wrote originally, which `pchCommand` is.


---

