diff options
author | John Newbery <john@johnnewbery.com> | 2021-12-14 10:15:10 +0000 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2022-01-13 15:54:59 +0100 |
commit | 9e64d69bf74c8a381fb59841519cc3736bce14d4 (patch) | |
tree | 9b2bffa0f8dfd562a90234023783c5d14c1c65e4 /src/net.h | |
parent | 801aaac2b39564aa14009785146ba26d2506fb53 (diff) | |
download | bitcoin-9e64d69bf74c8a381fb59841519cc3736bce14d4.tar.xz |
[move] Move PoissonNextSend to src/random and update comment
PoissonNextSend is used by net and net_processing and is stateless, so
place it in the utility random.cpp translation unit.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1270,9 +1270,6 @@ private: friend struct ConnmanTestMsg; }; -/** Return a timestamp in the future (in microseconds) for exponentially distributed events. */ -std::chrono::microseconds PoissonNextSend(std::chrono::microseconds now, std::chrono::seconds average_interval); - /** Dump binary message to file, with timestamp */ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Span<const unsigned char>& data, bool is_incoming); |