mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 22:10:33 -04:00
cryptonote_protocol: prevent duplicate txs in fluff queue
1. Fix duplicate transaction #9335 2. Add test for cases where there are duplicate transaction in fluff Co-authored-by: Boog900 <boog900@tutanota.com>
This commit is contained in:
parent
24ccaba6ef
commit
8dbc361e98
2 changed files with 59 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue