mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 12:07:59 -04:00
Add randomized delay when forwarding txes from i2p/tor -> ipv4/6
This commit is contained in:
parent
378cdeaeae
commit
67ade80055
9 changed files with 368 additions and 40 deletions
|
@ -117,6 +117,11 @@
|
|||
#define CRYPTONOTE_NOISE_BYTES 3*1024 // 3 KiB
|
||||
#define CRYPTONOTE_NOISE_CHANNELS 2 // Max outgoing connections per zone used for noise/covert sending
|
||||
|
||||
// Both below are in seconds. The idea is to delay forwarding from i2p/tor
|
||||
// to ipv4/6, such that 2+ incoming connections _could_ have sent the tx
|
||||
#define CRYPTONOTE_FORWARD_DELAY_BASE (CRYPTONOTE_NOISE_MIN_DELAY + CRYPTONOTE_NOISE_DELAY_RANGE)
|
||||
#define CRYPTONOTE_FORWARD_DELAY_AVERAGE (CRYPTONOTE_FORWARD_DELAY_BASE + (CRYPTONOTE_FORWARD_DELAY_BASE / 2))
|
||||
|
||||
#define CRYPTONOTE_MAX_FRAGMENTS 20 // ~20 * NOISE_BYTES max payload size for covert/noise send
|
||||
|
||||
#define COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT 1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue