diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:24:32 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 21:24:32 +0200 |
| commit | 372c0da086a953dab90f52ff18eaa167b9dcb5d5 (patch) | |
| tree | 795b5350efbae9c2cbecc13a700b62e62a518f0b /src/cryptonote_protocol | |
| parent | 196022530b76962d9083dd76487a9179245a78bc (diff) | |
| parent | 6a3608d3d288bec5fc9a15ad8b3270079b2c7325 (diff) | |
| download | monzero-core-372c0da086a953dab90f52ff18eaa167b9dcb5d5.tar.gz monzero-core-372c0da086a953dab90f52ff18eaa167b9dcb5d5.tar.xz monzero-core-372c0da086a953dab90f52ff18eaa167b9dcb5d5.zip | |
Merge pull request #5111
6a3608d3 cryptonote_protocol_handler: pad tx messages when using tor/i2p (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol')
| -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 018ef4ab2..8fada4e3c 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2112,7 +2112,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) { |
