set router status to uknown if peer test msg 5 came from recently connected peer

This commit is contained in:
orignal 2024-09-23 20:24:33 -04:00
parent 816771dd00
commit 5cd0248494
2 changed files with 6 additions and 2 deletions

View file

@ -397,6 +397,7 @@ namespace transport
uint8_t GetMsgNumReceived () const { return m_MsgNumReceived; }
bool IsConnectedRecently () const { return m_IsConnectedRecently; }
void SetStatusChanged () { m_IsStatusChanged = true; }
bool ProcessPeerTest (uint8_t * buf, size_t len) override;
private:
@ -406,7 +407,7 @@ namespace transport
private:
uint8_t m_MsgNumReceived;
bool m_IsConnectedRecently;
bool m_IsConnectedRecently, m_IsStatusChanged;
};
inline uint64_t CreateHeaderMask (const uint8_t * kh, const uint8_t * nonce)