Skip to content

Commit 438efda

Browse files
committed
[release/1.4.16] cmd/utils: disable jitvm A/B test
1 parent f7e6fb7 commit 438efda

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cmd/utils/flags.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ import (
2222
"io/ioutil"
2323
"math"
2424
"math/big"
25-
"math/rand"
2625
"os"
2726
"path/filepath"
2827
"runtime"
2928
"strconv"
3029
"strings"
31-
"time"
3230

3331
"github.com/ethereum/ethash"
3432
"github.com/ethereum/go-ethereum/accounts"
@@ -667,17 +665,7 @@ func MakeSystemNode(name, version string, relconf release.Config, extra []byte,
667665
}
668666
// Configure the Ethereum service
669667
accman := MakeAccountManager(ctx)
670-
671-
// initialise new random number generator
672-
rand := rand.New(rand.NewSource(time.Now().UnixNano()))
673-
// get enabled jit flag
674668
jitEnabled := ctx.GlobalBool(VMEnableJitFlag.Name)
675-
// if the jit is not enabled enable it for 10 pct of the people
676-
if !jitEnabled && rand.Float64() < 0.1 {
677-
jitEnabled = true
678-
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")
679-
}
680-
681669
ethConf := &eth.Config{
682670
ChainConfig: MustMakeChainConfig(ctx),
683671
FastSync: ctx.GlobalBool(FastSyncFlag.Name),

0 commit comments

Comments
 (0)