diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-09-06 15:55:14 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 22:51:38 +0200 |
commit | 534b314a7401d44f51aabd4565f97be9ee411740 (patch) | |
tree | 7109128d57dc16dcc99c1c0a5d4ae2553c5ae55a /src/protocol.h | |
parent | 9be330b654cfbd792620295f3867f592059d6a7a (diff) | |
download | bitcoin-534b314a7401d44f51aabd4565f97be9ee411740.tar.xz |
kernel: Move MessageStartChars to its own file
The protocol.h file contains many non-consensus related definitions and
should thus not be part of the libbitcoinkernel. This commit makes
protocol.h no longer a required include for users of the
libbitcoinkernel.
This commit is part of the libbitcoinkernel project, namely its stage 1
step 3: Decouple most non-consensus headers from libbitcoinkernel.
Co-Authored-By: Cory Fields <cory-nospam-@coryfields.com>
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.h b/src/protocol.h index cb7f9666e1..22e2108afb 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -6,6 +6,7 @@ #ifndef BITCOIN_PROTOCOL_H #define BITCOIN_PROTOCOL_H +#include <kernel/messagestartchars.h> // IWYU pragma: export #include <netaddress.h> #include <primitives/transaction.h> #include <serialize.h> @@ -27,7 +28,6 @@ class CMessageHeader { public: - using MessageStartChars = std::array<uint8_t, 4>; static constexpr size_t COMMAND_SIZE = 12; static constexpr size_t MESSAGE_SIZE_SIZE = 4; static constexpr size_t CHECKSUM_SIZE = 4; |