<p>I read that bitcoin uses random delay when relaying transaction to other peers in order to protect privacy. When I read the <a href="https://github.com/bitcoin/bitcoin" rel="nofollow noreferrer">source code of the newest Bitcoin Core</a>, I found a function called <code>rand_uniform_delay</code>. When I searched for its usage, I found it only used in <code>random_test.cpp</code>. I wonder where the code for the random delay in Bitcoin Core can be found.</p>
<p><a href="https://i.sstatic.net/NHHka.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/NHHka.png" alt="enter image description here" /></a></p>

<bitcoin-core><relay><transaction-propagation>
Does Bitcoin Core really use random delay in transaction relay?
noob
# Does Bitcoin Core really use random delay in transaction relay?

(Asked by: username_0 on 2022-07-01)

I read that bitcoin uses random delay when relaying transaction to other peers in order to protect privacy. When I read the [source code of the newest Bitcoin Core](https://github.com/bitcoin/bitcoin), I found a function called `rand_uniform_delay`. When I searched for its usage, I found it only used in `random_test.cpp`. I wonder where the code for the random delay in Bitcoin Core can be found.

[![enter image description here](https://i.sstatic.net/NHHka.png)](https://i.sstatic.net/NHHka.png)

**Tags:** bitcoin-core, relay, transaction-propagation


---

## 0 answers

