aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/levin_notify.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-01 22:35:59 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-01 22:35:59 -0800
commit16c780d5688c7931ca6f55537c9cc8c1d4abc3dd (patch)
tree9efba2d35c48d1f6b592d54211b1bd52bfed0a36 /src/cryptonote_protocol/levin_notify.cpp
parent3bf0721ae603f3efd8aeaa8e44b41b6c47bd4b83 (diff)
parent61b6e4cc67abd61a0dbffe271ee3f355b2e772bc (diff)
downloadmonzero-core-16c780d5688c7931ca6f55537c9cc8c1d4abc3dd.tar.gz
monzero-core-16c780d5688c7931ca6f55537c9cc8c1d4abc3dd.tar.xz
monzero-core-16c780d5688c7931ca6f55537c9cc8c1d4abc3dd.zip
Merge pull request #7250
61b6e4cc6 Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
Diffstat (limited to 'src/cryptonote_protocol/levin_notify.cpp')
-rw-r--r--src/cryptonote_protocol/levin_notify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp
index 21363972d..c23a4d2fe 100644
--- a/src/cryptonote_protocol/levin_notify.cpp
+++ b/src/cryptonote_protocol/levin_notify.cpp
@@ -443,7 +443,7 @@ namespace levin
zone->p2p->foreach_connection([txs, now, &zone, &source, &in_duration, &out_duration, &next_flush] (detail::p2p_context& context)
{
// When i2p/tor, only fluff to outbound connections
- if (source != context.m_connection_id && (zone->nzone == epee::net_utils::zone::public_ || !context.m_is_income))
+ if (context.handshake_complete() && source != context.m_connection_id && (zone->nzone == epee::net_utils::zone::public_ || !context.m_is_income))
{
if (context.fluff_txs.empty())
context.flush_time = now + (context.m_is_income ? in_duration() : out_duration());