aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-04 15:54:07 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-04 15:54:07 +0800
commit17b481e3c30c10866fe756833e145717ec29d918 (patch)
treeeb858a491435a56851db5ea500265940fd0c9752 /eth/backend.go
parent97cdf848996b9a3aa8b7683b04798452ed8a5cb4 (diff)
parentdcdb7059cc69ee4e77518b8dd92d5c7037aa3c8d (diff)
downloaddexon-17b481e3c30c10866fe756833e145717ec29d918.tar
dexon-17b481e3c30c10866fe756833e145717ec29d918.tar.gz
dexon-17b481e3c30c10866fe756833e145717ec29d918.tar.bz2
dexon-17b481e3c30c10866fe756833e145717ec29d918.tar.lz
dexon-17b481e3c30c10866fe756833e145717ec29d918.tar.xz
dexon-17b481e3c30c10866fe756833e145717ec29d918.tar.zst
dexon-17b481e3c30c10866fe756833e145717ec29d918.zip
Merge pull request #1581 from obscuren/olympic
cmd, core, eth: support for the olympic network
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index bed6231ed..4795000e0 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -78,6 +78,7 @@ type Config struct {
GenesisNonce int
GenesisFile string
GenesisBlock *types.Block // used by block tests
+ Olympic bool
BlockChainVersion int
SkipBcVersionCheck bool // e.g. blockchain export
@@ -302,6 +303,14 @@ func New(config *Config) (*Ethereum, error) {
glog.V(logger.Info).Infof("Successfully wrote genesis block. New genesis hash = %x\n", block.Hash())
}
+ if config.Olympic {
+ _, err := core.WriteTestNetGenesisBlock(stateDb, blockDb, 42)
+ if err != nil {
+ return nil, err
+ }
+ glog.V(logger.Error).Infoln("Starting Olympic network")
+ }
+
// This is for testing only.
if config.GenesisBlock != nil {
core.WriteBlock(blockDb, config.GenesisBlock)