diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 13:12:31 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 13:12:31 -0500 |
| commit | d1f3d3376df2ce46d5a1c8fcbf41e7f2fae1b294 (patch) | |
| tree | 254d5bdc6c79891c8f1261fdf416f4ca50dd5379 /src/cryptonote_protocol | |
| parent | 975825a1fdc949d00284a1a38fb07111c6f03384 (diff) | |
| parent | e7197602539b79baa14350bb9e99c935dfbebb72 (diff) | |
| download | monzero-core-d1f3d3376df2ce46d5a1c8fcbf41e7f2fae1b294.tar.gz monzero-core-d1f3d3376df2ce46d5a1c8fcbf41e7f2fae1b294.tar.xz monzero-core-d1f3d3376df2ce46d5a1c8fcbf41e7f2fae1b294.zip | |
Merge pull request #6381
e719760 Fix receive order leakage with tx fluffing (vtnerd)
Diffstat (limited to 'src/cryptonote_protocol')
| -rw-r--r-- | src/cryptonote_protocol/levin_notify.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp index bba0a27ce..428b739bc 100644 --- a/src/cryptonote_protocol/levin_notify.cpp +++ b/src/cryptonote_protocol/levin_notify.cpp @@ -363,7 +363,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); |
