This PR introduces a 10% probability that you'll run the client with the
JIT enabled testing the new client and helps us potentially catch
errors when reported.
This feature is **disabled** for miners (disabling the JIT completely).
The JIT can however be force for miners if they enable both --jitvm and
--forcejit.
pull/2378/head
Jeffrey Wilcke9 years agocommitted byJeffrey Wilcke
// 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:=ð.Config{
ChainConfig:MustMakeChainConfig(ctx),
Genesis:MakeGenesisBlock(ctx),
@ -673,7 +685,7 @@ func MakeSystemNode(name, version string, extra []byte, ctx *cli.Context) *node.