diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-30 23:17:45 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-30 23:17:45 +0000 |
commit | 6a3608d3d288bec5fc9a15ad8b3270079b2c7325 (patch) | |
tree | 4db2631cb032cf9fd4b55a681195068d2f125935 | |
parent | Merge pull request #4988 (diff) | |
download | monero-6a3608d3d288bec5fc9a15ad8b3270079b2c7325.tar.xz |
cryptonote_protocol_handler: pad tx messages when using tor/i2p
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index c1459cbb6..c74afb6b6 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -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) { |