aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorTim Ruffing <crypto@timruffing.de>2023-09-26 13:26:27 +0200
committerTim Ruffing <crypto@timruffing.de>2023-09-27 12:19:54 +0200
commite3720bca398820038b3e97f467adb2c45ef9ef5f (patch)
tree682817ecf08ced05701347f27f67eab91fdf7653 /src/net.h
parentb0f5175c044df956c0f07f540706d457c4912856 (diff)
net: Simplify v2 recv logic by decoupling AAD from state machine
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 5f99cd667a..035cca2b13 100644
--- a/src/net.h
+++ b/src/net.h
@@ -578,8 +578,8 @@ private:
uint32_t m_recv_len GUARDED_BY(m_recv_mutex) {0};
/** Receive buffer; meaning is determined by m_recv_state. */
std::vector<uint8_t> m_recv_buffer GUARDED_BY(m_recv_mutex);
- /** During VERSION, the garbage received during GARB_GARBTERM. */
- std::vector<uint8_t> m_recv_garbage GUARDED_BY(m_recv_mutex);
+ /** AAD expected in next received packet (currently used only for garbage). */
+ std::vector<uint8_t> m_recv_aad GUARDED_BY(m_recv_mutex);
/** Buffer to put decrypted contents in, for converting to CNetMessage. */
std::vector<uint8_t> m_recv_decode_buffer GUARDED_BY(m_recv_mutex);
/** Deserialization type. */