mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-05 18:23:03 +01:00
refactor: Initialize magic bytes in constructor initializer
Also remove an assert that is already enforced by the compiler checking that the length of the std::array matches.
This commit is contained in:
@@ -372,7 +372,7 @@ public:
|
||||
class V1Transport final : public Transport
|
||||
{
|
||||
private:
|
||||
MessageStartChars m_magic_bytes;
|
||||
const MessageStartChars m_magic_bytes;
|
||||
const NodeId m_node_id; // Only for logging
|
||||
mutable Mutex m_recv_mutex; //!< Lock for receive state
|
||||
mutable CHash256 hasher GUARDED_BY(m_recv_mutex);
|
||||
|
||||
Reference in New Issue
Block a user