@@ -21,7 +21,6 @@ import (
2121 "crypto/ecdsa"
2222 "fmt"
2323 "io/ioutil"
24- "math"
2524 "math/big"
2625 "os"
2726 "path/filepath"
@@ -116,13 +115,9 @@ var (
116115 }
117116 NetworkIdFlag = cli.IntFlag {
118117 Name : "networkid" ,
119- Usage : "Network identifier (integer, 0=Olympic (disused), 1=Frontier, 2=Morden (disused), 3=Ropsten)" ,
118+ Usage : "Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten)" ,
120119 Value : eth .NetworkId ,
121120 }
122- OlympicFlag = cli.BoolFlag {
123- Name : "olympic" ,
124- Usage : "Olympic network: pre-configured pre-release test network" ,
125- }
126121 TestNetFlag = cli.BoolFlag {
127122 Name : "testnet" ,
128123 Usage : "Ropsten network: pre-configured test network" ,
@@ -712,7 +707,7 @@ func MakeNode(ctx *cli.Context, name, gitCommit string) *node.Node {
712707// given node.
713708func RegisterEthService (ctx * cli.Context , stack * node.Node , extra []byte ) {
714709 // Avoid conflicting network flags
715- networks , netFlags := 0 , []cli.BoolFlag {DevModeFlag , TestNetFlag , OlympicFlag }
710+ networks , netFlags := 0 , []cli.BoolFlag {DevModeFlag , TestNetFlag }
716711 for _ , flag := range netFlags {
717712 if ctx .GlobalBool (flag .Name ) {
718713 networks ++
@@ -750,20 +745,14 @@ func RegisterEthService(ctx *cli.Context, stack *node.Node, extra []byte) {
750745
751746 // Override any default configs in dev mode or the test net
752747 switch {
753- case ctx .GlobalBool (OlympicFlag .Name ):
754- if ! ctx .GlobalIsSet (NetworkIdFlag .Name ) {
755- ethConf .NetworkId = 1
756- }
757- ethConf .Genesis = core .OlympicGenesisBlock ()
758-
759748 case ctx .GlobalBool (TestNetFlag .Name ):
760749 if ! ctx .GlobalIsSet (NetworkIdFlag .Name ) {
761750 ethConf .NetworkId = 3
762751 }
763752 ethConf .Genesis = core .DefaultTestnetGenesisBlock ()
764753
765754 case ctx .GlobalBool (DevModeFlag .Name ):
766- ethConf .Genesis = core .OlympicGenesisBlock ()
755+ ethConf .Genesis = core .DevGenesisBlock ()
767756 if ! ctx .GlobalIsSet (GasPriceFlag .Name ) {
768757 ethConf .GasPrice = new (big.Int )
769758 }
@@ -820,16 +809,6 @@ func RegisterEthStatsService(stack *node.Node, url string) {
820809
821810// SetupNetwork configures the system for either the main net or some test network.
822811func SetupNetwork (ctx * cli.Context ) {
823- switch {
824- case ctx .GlobalBool (OlympicFlag .Name ):
825- params .DurationLimit = big .NewInt (8 )
826- params .GenesisGasLimit = big .NewInt (3141592 )
827- params .MinGasLimit = big .NewInt (125000 )
828- params .MaximumExtraDataSize = big .NewInt (1024 )
829- NetworkIdFlag .Value = 0
830- core .BlockReward = big .NewInt (1.5e+18 )
831- core .ExpDiffPeriod = big .NewInt (math .MaxInt64 )
832- }
833812 params .TargetGasLimit = common .String2Big (ctx .GlobalString (TargetGasLimitFlag .Name ))
834813}
835814
@@ -920,13 +899,6 @@ func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chai
920899 var err error
921900 chainDb = MakeChainDatabase (ctx , stack )
922901
923- if ctx .GlobalBool (OlympicFlag .Name ) {
924- _ , err := core .WriteOlympicGenesisBlock (chainDb )
925- if err != nil {
926- glog .Fatalln (err )
927- }
928- }
929-
930902 if ctx .GlobalBool (TestNetFlag .Name ) {
931903 _ , err := core .WriteTestNetGenesisBlock (chainDb )
932904 if err != nil {
0 commit comments