Skip to content

Commit

Permalink
changed chainid for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyJiaqg committed Dec 17, 2017
1 parent 4499bd4 commit 13d7152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
if genesis == nil {
log.Info("Writing default main-net genesis block")
genesis = DefaultGenesisBlock()
} else if genesis.Config.ChainId.Cmp(big.NewInt(2)) == 0 {
} else if genesis.Config.ChainId.Cmp(big.NewInt(3))==0 {
log.Info("Writing default test net genesis block")
genesis = DefaultTestnetGenesisBlock()
} else {
Expand Down
2 changes: 1 addition & 1 deletion les/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
return nil, err
}

config.Genesis.Config.ChainId = big.NewInt(2) //used the default testnet
config.Genesis.Config.ChainId = big.NewInt(3) //used the default testnet

chainConfig, genesisHash, genesisErr := core.SetupGenesisBlock(chainDb, config.Genesis)
if _, isCompat := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !isCompat {
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
VersionMajor = 0 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release
VersionPatch = 0 // Patch version component of the current release
VersionPatch = 1 // Patch version component of the current release
VersionMeta = "wan" // Version metadata to append to the version string
)

Expand Down

0 comments on commit 13d7152

Please sign in to comment.