From a1d5ac2b46ae3adbee95f11dc0967e8cdeb59370 Mon Sep 17 00:00:00 2001 From: tbjump Date: Tue, 22 Aug 2023 18:52:26 +0000 Subject: [PATCH] node/p2p: increase TESTNET_BOOTSTRAP_DHI to 350 --- node/pkg/p2p/p2p.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/pkg/p2p/p2p.go b/node/pkg/p2p/p2p.go index 7a49eba962..762a64e86c 100644 --- a/node/pkg/p2p/p2p.go +++ b/node/pkg/p2p/p2p.go @@ -46,6 +46,9 @@ const DefaultPort = 8999 const P2P_VALIDATE_QUEUE_SIZE = 1024 const P2P_SUBSCRIPTION_BUFFER_SIZE = 1024 +// TESTNET_BOOTSTRAP_DHI configures how many nodes may connect to the testnet bootstrap node. This number should not exceed HighWaterMark. +const TESTNET_BOOTSTRAP_DHI = 350 + var ( p2pHeartbeatsSent = promauto.NewCounter( prometheus.CounterOpts{ @@ -284,7 +287,7 @@ func Run( if bootstrapNode { logger.Info("We are a bootstrap node.") if networkID == "/wormhole/testnet/2/1" { - gossipParams.Dhi = 50 + gossipParams.Dhi = TESTNET_BOOTSTRAP_DHI logger.Info("We are a bootstrap node in Testnet. Setting gossipParams.Dhi.", zap.Int("gossipParams.Dhi", gossipParams.Dhi)) } }