mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-06 09:01:34 +00:00
Although it is possible to get the command name for each msg type by creating an instances of the type and calling the Command method against it, it's slightly more efficient to simply allows callers to have direct access to the exported constants. This is currently really useful for the reject message since callers need to be able to examine the command type to determine whether or not the hash field needs to be included.
3.9 KiB
3.9 KiB