cryptonote_protocol_handler: pad tx messages when using tor/i2p

This commit is contained in:
moneromooo-monero 2019-01-30 23:17:45 +00:00
parent 31bdf7bd11
commit 6a3608d3d2
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -2111,7 +2111,7 @@ skip:
MDEBUG("Attempting to conceal origin of tx via anonymity network connection(s)");
// no check for success, so tell core they're relayed unconditionally
const bool pad_transactions = m_core.pad_transactions();
const bool pad_transactions = m_core.pad_transactions() || hide_tx_broadcast;
size_t bytes = pad_transactions ? 9 /* header */ + 4 /* 1 + 'txs' */ + tools::get_varint_data(arg.txs.size()).size() : 0;
for(auto tx_blob_it = arg.txs.begin(); tx_blob_it!=arg.txs.end(); ++tx_blob_it)
{