diff options
author | Pieter Wuille <pieter@wuille.net> | 2023-09-05 23:38:15 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2023-09-07 09:04:55 -0400 |
commit | db9888feec48c6220a2fcf92865503bbbdab02a4 (patch) | |
tree | 8caab5c93e39ff31a57861941ec9c7411f3a1379 /src/net.h | |
parent | 91e1ef8684997fb4b3e8b64ef3935a936445066b (diff) |
net: detect wrong-network V1 talking to V2Transport
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -617,7 +617,7 @@ private: /** Process bytes in m_recv_buffer, while in KEY_MAYBE_V1 state. */ void ProcessReceivedMaybeV1Bytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex); /** Process bytes in m_recv_buffer, while in KEY state. */ - void ProcessReceivedKeyBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex); + bool ProcessReceivedKeyBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex); /** Process bytes in m_recv_buffer, while in GARB_GARBTERM state. */ bool ProcessReceivedGarbageBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex); /** Process bytes in m_recv_buffer, while in GARBAUTH/VERSION/APP state. */ |