From fdf6b09433cb4ca9872b89ed3419e0f594523442 Mon Sep 17 00:00:00 2001 From: Nik Bougalis Date: Mon, 18 May 2020 08:30:54 -0700 Subject: [PATCH] Adjust frequency of mtENDPOINTS messages --- src/ripple/peerfinder/impl/Tuning.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ripple/peerfinder/impl/Tuning.h b/src/ripple/peerfinder/impl/Tuning.h index 3fea49a9446..47c3a775eb9 100644 --- a/src/ripple/peerfinder/impl/Tuning.h +++ b/src/ripple/peerfinder/impl/Tuning.h @@ -129,7 +129,8 @@ enum { }; // How often we send or accept mtENDPOINTS messages per peer -static std::chrono::seconds const secondsPerMessage(5); +// (we use a prime number of purpose) +static std::chrono::seconds const secondsPerMessage(61); // How long an Endpoint will stay in the cache // This should be a small multiple of the broadcast frequency