diff options
author | luigi1111 <luigi1111w@gmail.com> | 2024-07-16 18:51:30 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2024-07-16 18:51:30 -0400 |
commit | 66c5917876916efaab062d93a0f7bf5ccff6bcbf (patch) | |
tree | e6b128102cc2a96c1114240397c9d8dd671bd3f6 /src | |
parent | Merge pull request #9349 (diff) | |
parent | cryptonote_protocol: prevent duplicate txs in fluff queue (diff) | |
download | monero-66c5917876916efaab062d93a0f7bf5ccff6bcbf.tar.xz |
Merge pull request #9353
32f3245 cryptonote_protocol: prevent duplicate txs in fluff queue (0xFFFC0000)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_protocol/levin_notify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp index 052b3d638..631a6c305 100644 --- a/src/cryptonote_protocol/levin_notify.cpp +++ b/src/cryptonote_protocol/levin_notify.cpp @@ -396,6 +396,8 @@ namespace levin for (auto& connection : connections) { std::sort(connection.first.begin(), connection.first.end()); // don't leak receive order + connection.first.erase(std::unique(connection.first.begin(), connection.first.end()), + connection.first.end()); make_payload_send_txs(*zone_->p2p, std::move(connection.first), connection.second, zone_->pad_txs, true); } |