aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/levin_notify.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-03-10 22:30:07 -0400
committerLee Clagett <code@leeclagett.com>2020-03-10 22:30:07 -0400
commite7197602539b79baa14350bb9e99c935dfbebb72 (patch)
treecc51ec13e167bb9697fa819810b64b50f34529bd /src/cryptonote_protocol/levin_notify.cpp
parentMerge pull request #6248 (diff)
downloadmonero-e7197602539b79baa14350bb9e99c935dfbebb72.tar.xz
Fix receive order leakage with tx fluffing
Diffstat (limited to 'src/cryptonote_protocol/levin_notify.cpp')
-rw-r--r--src/cryptonote_protocol/levin_notify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp
index e45c34e02..5abd0d506 100644
--- a/src/cryptonote_protocol/levin_notify.cpp
+++ b/src/cryptonote_protocol/levin_notify.cpp
@@ -358,7 +358,10 @@ namespace levin
});
for (auto& connection : connections)
+ {
+ std::sort(connection.first.begin(), connection.first.end()); // don't leak receive order
make_payload_send_txs(*zone_->p2p, std::move(connection.first), connection.second, zone_->pad_txs);
+ }
if (next_flush != std::chrono::steady_clock::time_point::max())
fluff_flush::queue(std::move(zone_), next_flush);