Skip to content

Commit

Permalink
node/p2p: increase TESTNET_BOOTSTRAP_DHI to 350
Browse files Browse the repository at this point in the history
  • Loading branch information
tbjump authored and tbjump committed Aug 22, 2023
1 parent b780b3d commit a1d5ac2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/pkg/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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))
}
}
Expand Down

0 comments on commit a1d5ac2

Please sign in to comment.