github.com/aergoio/aergo@v1.3.1/polaris/common/consts.go (about)

     1  /*
     2   * @file
     3   * @copyright defined in aergo/LICENSE.txt
     4   */
     5  
     6  package common
     7  
     8  import "github.com/aergoio/aergo/types"
     9  
    10  var (
    11  	// 89.16 is ceiling of declination of Polaris
    12  	MainnetMapServer = []string{
    13  		"/dns/mainnet-polaris.aergo.io/tcp/8916/p2p/16Uiu2HAkuxyDkMTQTGFpmnex2SdfTVzYfPztTyK339rqUdsv3ZUa",
    14  	}
    15  
    16  	// 89.16 is ceiling of declination of Polaris
    17  	TestnetMapServer = []string{
    18  		"/dns/polaris.aergo.io/tcp/8916/p2p/16Uiu2HAkvJTHFuJXxr15rFEHsJWnyn1QvGatW2E9ED9Mvy4HWjVF",
    19  	}
    20  
    21  	// Hardcoded chainID of ONE MAINNET and ONE TESTNET
    22  	ONEMainNet types.ChainID
    23  	ONETestNet types.ChainID
    24  )
    25  
    26  func init() {
    27  	mnGen := types.GetMainNetGenesis()
    28  	if mnGen == nil {
    29  		panic("Failed to get MainNet GenesisInfo")
    30  	}
    31  	ONEMainNet = mnGen.ID
    32  
    33  	tnGen := types.GetTestNetGenesis()
    34  	if tnGen == nil {
    35  		panic("Failed to get TestNet GenesisInfo")
    36  	}
    37  	ONETestNet = tnGen.ID
    38  }
    39