diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-02 22:27:25 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-06 15:47:05 +0000 |
commit | 3dba7f252e080ca9ce9c86dca033e6b0b00ee21d (patch) | |
tree | e1e87e8fef2305e063a73bc228296e6f613f7739 /src/cryptonote_protocol/cryptonote_protocol_defs.h | |
parent | Merge pull request #4676 (diff) | |
download | monero-3dba7f252e080ca9ce9c86dca033e6b0b00ee21d.tar.xz |
protocol: option to pad transaction relay to the next kB
To help protect one's privacy from traffic volume analysis
for people using Tor or I2P. This will really fly once we
relay txes on a timer rather than on demand, though.
Off by default for now since it's wasteful and doesn't bring
anything until I2P's in.
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_defs.h b/src/cryptonote_protocol/cryptonote_protocol_defs.h index db159f0f4..d5bb50930 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_defs.h +++ b/src/cryptonote_protocol/cryptonote_protocol_defs.h @@ -146,9 +146,11 @@ namespace cryptonote struct request { std::vector<blobdata> txs; + std::string _; // padding BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(txs) + KV_SERIALIZE(_) END_KV_SERIALIZE_MAP() }; }; |