Merge pull request #9353

32f3245 cryptonote_protocol: prevent duplicate txs in fluff queue (0xFFFC0000)
This commit is contained in:
luigi1111
2024-07-16 18:51:30 -04:00
2 changed files with 59 additions and 0 deletions

View File

@@ -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);
}