aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-06 18:19:27 +0800
committerFelix Lange <fjl@twurst.com>2016-10-06 22:25:17 +0800
commit438efdab282775e90ec3c6d7b6c8404b65ff19c4 (patch)
treeba43700270637c49ad43cc2e843be536173693eb
parentf7e6fb7d1c95a5c7f844c2786c7cd273a2d77ced (diff)
downloadgo-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar.gz
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar.bz2
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar.lz
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar.xz
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.tar.zst
go-tangerine-438efdab282775e90ec3c6d7b6c8404b65ff19c4.zip
[release/1.4.16] cmd/utils: disable jitvm A/B test
-rw-r--r--cmd/utils/flags.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 808cf7ca1..9424a288d 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"
@@ -667,17 +665,7 @@ func MakeSystemNode(name, version string, relconf release.Config, extra []byte,
}
// Configure the Ethereum service
accman := MakeAccountManager(ctx)
-
- // 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{
ChainConfig: MustMakeChainConfig(ctx),
FastSync: ctx.GlobalBool(FastSyncFlag.Name),