aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-16 05:20:18 +0800
committerGitHub <noreply@github.com>2016-11-16 05:20:18 +0800
commita96d6c68e2933ab4121358bee91d1bd011efe67a (patch)
treeb7aed1774295c96448d63760685c4bba74ac65d2 /cmd/utils/flags.go
parent4dd3e7fe3590b03851f6c4eab40a581de0fceb70 (diff)
downloadgo-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar.gz
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar.bz2
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar.lz
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar.xz
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.tar.zst
go-tangerine-a96d6c68e2933ab4121358bee91d1bd011efe67a.zip
cmd/utils: remove jit flag handling (#3273)
The jit config options are not handled, but random selection still took place, printing confusing messages.
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 6d9482e69..cac8773e2 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -22,13 +22,11 @@ import (
"io/ioutil"
"math"
"math/big"
- "math/rand"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
- "time"
"github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/accounts"
@@ -717,16 +715,6 @@ func RegisterEthService(ctx *cli.Context, stack *node.Node, extra []byte) {
Fatalf("The %v flags are mutually exclusive", netFlags)
}
- // initialise new random number generator
- rand := rand.New(rand.NewSource(time.Now().UnixNano()))
- // get enabled jit flag
- jitEnabled := ctx.GlobalBool(VMEnableJitFlag.Name)
- // if the jit is not enabled enable it for 10 pct of the people
- if !jitEnabled && rand.Float64() < 0.1 {
- jitEnabled = true
- glog.V(logger.Info).Infoln("You're one of the lucky few that will try out the JIT VM (random). If you get a consensus failure please be so kind to report this incident with the block hash that failed. You can switch to the regular VM by setting --jitvm=false")
- }
-
ethConf := &eth.Config{
Etherbase: MakeEtherbase(stack.AccountManager(), ctx),
ChainConfig: MakeChainConfig(ctx, stack),
@@ -742,8 +730,6 @@ func RegisterEthService(ctx *cli.Context, stack *node.Node, extra []byte) {
ExtraData: MakeMinerExtra(extra, ctx),
NatSpec: ctx.GlobalBool(NatspecEnabledFlag.Name),
DocRoot: ctx.GlobalString(DocRootFlag.Name),
- EnableJit: jitEnabled,
- ForceJit: ctx.GlobalBool(VMForceJitFlag.Name),
GasPrice: common.String2Big(ctx.GlobalString(GasPriceFlag.Name)),
GpoMinGasPrice: common.String2Big(ctx.GlobalString(GpoMinGasPriceFlag.Name)),
GpoMaxGasPrice: common.String2Big(ctx.GlobalString(GpoMaxGasPriceFlag.Name)),