diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-07 23:21:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-07 23:25:33 +0800 |
commit | 2547c9c9b70a66f11626cb199f7d288ab1985259 (patch) | |
tree | 1baa73b0e8bffab0c16f342b9711ea5719ce3184 /cmd/utils/cmd.go | |
parent | 27528ad3d2c5a1816bc6305cbe434d6254bd52c2 (diff) | |
download | dexon-2547c9c9b70a66f11626cb199f7d288ab1985259.tar.gz dexon-2547c9c9b70a66f11626cb199f7d288ab1985259.tar.zst dexon-2547c9c9b70a66f11626cb199f7d288ab1985259.zip |
cmd: properly initialize Olympic for all subcommands
Diffstat (limited to 'cmd/utils/cmd.go')
-rw-r--r-- | cmd/utils/cmd.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 5e4bfc937..1fbd96dc8 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -21,8 +21,6 @@ import ( "bufio" "fmt" "io" - "math" - "math/big" "os" "os/signal" "regexp" @@ -34,7 +32,6 @@ import ( "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" - "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rlp" "github.com/peterh/liner" ) @@ -146,16 +143,6 @@ func StartEthereum(ethereum *eth.Ethereum) { }() } -func InitOlympic() { - params.DurationLimit = big.NewInt(8) - params.GenesisGasLimit = big.NewInt(3141592) - params.MinGasLimit = big.NewInt(125000) - params.MaximumExtraDataSize = big.NewInt(1024) - NetworkIdFlag.Value = 0 - core.BlockReward = big.NewInt(1.5e+18) - core.ExpDiffPeriod = big.NewInt(math.MaxInt64) -} - func FormatTransactionData(data string) []byte { d := common.StringToByteFunc(data, func(s string) (ret []byte) { slice := regexp.MustCompile("\\n|\\s").Split(s, 1000000000) |