github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/core/defaults.go (about)

     1  package core
     2  
     3  import (
     4  	"github.com/ethereumproject/go-ethereum/logger/glog"
     5  )
     6  
     7  var (
     8  	DefaultConfigMainnet *SufficientChainConfig
     9  	DefaultConfigMorden  *SufficientChainConfig
    10  )
    11  
    12  func init() {
    13  
    14  	var err error
    15  
    16  	DefaultConfigMainnet, err = parseExternalChainConfig("/core/config/mainnet.json", assetsOpen)
    17  	if err != nil {
    18  		glog.Fatal("Error parsing mainnet defaults from JSON:", err)
    19  	}
    20  	DefaultConfigMorden, err = parseExternalChainConfig("/core/config/morden.json", assetsOpen)
    21  	if err != nil {
    22  		glog.Fatal("Error parsing morden defaults from JSON:", err)
    23  	}
    24  }