@@ -22,6 +22,7 @@ import (
22
22
"github.com/ava-labs/avalanchego/ids"
23
23
"github.com/ava-labs/avalanchego/staking"
24
24
"github.com/ava-labs/avalanchego/tests/fixture/stacktrace"
25
+ "github.com/ava-labs/avalanchego/utils/constants"
25
26
"github.com/ava-labs/avalanchego/utils/crypto/bls/signer/localsigner"
26
27
"github.com/ava-labs/avalanchego/vms/platformvm/signer"
27
28
)
@@ -369,10 +370,14 @@ func (n *Node) composeFlags() (FlagsMap, error) {
369
370
// Convert the network id to a string to ensure consistency in JSON round-tripping.
370
371
flags .SetDefault (config .NetworkNameKey , strconv .FormatUint (uint64 (n .network .GetNetworkID ()), 10 ))
371
372
372
- // Set the bootstrap configuration
373
- bootstrapIPs , bootstrapIDs := n .network .GetBootstrapIPsAndIDs (n )
374
- flags .SetDefault (config .BootstrapIDsKey , strings .Join (bootstrapIDs , "," ))
375
- flags .SetDefault (config .BootstrapIPsKey , strings .Join (bootstrapIPs , "," ))
373
+ // Set the bootstrap configuration only for non-public networks
374
+ // Public networks should use avalanchego's built-in bootstrappers
375
+ networkID := n .network .GetNetworkID ()
376
+ if networkID != constants .FujiID && networkID != constants .MainnetID {
377
+ bootstrapIPs , bootstrapIDs := n .network .GetBootstrapIPsAndIDs (n )
378
+ flags .SetDefault (config .BootstrapIDsKey , strings .Join (bootstrapIDs , "," ))
379
+ flags .SetDefault (config .BootstrapIPsKey , strings .Join (bootstrapIPs , "," ))
380
+ }
376
381
377
382
// TODO(marun) Maybe avoid computing content flags for each node start?
378
383
0 commit comments