mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 11:56:02 -04:00
Add aggressive restrictions to pre-handshake p2p buffer limit
This commit is contained in:
parent
a1eca8ca7e
commit
61b6e4cc67
10 changed files with 40 additions and 11 deletions
|
@ -55,6 +55,8 @@ namespace cryptonote
|
|||
state_normal
|
||||
};
|
||||
|
||||
bool handshake_complete() const noexcept { return m_state != state_before_handshake; }
|
||||
|
||||
state m_state;
|
||||
std::vector<std::pair<crypto::hash, uint64_t>> m_needed_objects;
|
||||
std::unordered_set<crypto::hash> m_requested_objects;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue