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:
TheCharlatan
2023-11-11 13:04:18 +01:00
parent 8243762700
commit d49d198840
3 changed files with 3 additions and 6 deletions

View File

@@ -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);