Skip to content

Commit 1f94bb0

Browse files
committed
[doc] Provide rationale for randomization in scheduling.
1 parent 9c8a55d commit 1f94bb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ void PeerLogicValidation::ReattemptInitialBroadcast(CScheduler& scheduler) const
825825
}
826826
}
827827

828-
// schedule next run for 10-15 minutes in the future
828+
// Schedule next run for 10-15 minutes in the future.
829+
// We add randomness on every cycle to avoid the possibility of P2P fingerprinting.
829830
const std::chrono::milliseconds delta = std::chrono::minutes{10} + GetRandMillis(std::chrono::minutes{5});
830831
scheduler.scheduleFromNow([&] { ReattemptInitialBroadcast(scheduler); }, delta);
831832
}

0 commit comments

Comments
 (0)