Merge pull request #6381

e719760 Fix receive order leakage with tx fluffing (vtnerd)
This commit is contained in:
luigi1111 2020-04-04 13:12:31 -05:00
commit d1f3d3376d
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 15 additions and 8 deletions

View file

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