diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-14 17:49:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-14 17:49:15 +0800 |
commit | 294b4374148fb2afa019779a4ef17bec5d4c3665 (patch) | |
tree | 86c5ce9f99bf94f7bc8cf222ffea8eae1878b53e /utils | |
parent | 03e082d4acc89f3dd59b9ab17be75838705b0b9a (diff) | |
download | go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar.gz go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar.bz2 go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar.lz go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar.xz go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.tar.zst go-tangerine-294b4374148fb2afa019779a4ef17bec5d4c3665.zip |
New VM
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 700542cae..060e8067b 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -118,9 +118,12 @@ func InitLogging(Datadir string, LogFile string, LogLevel int, DebugFile string) return sys } -func InitConfig(ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager { +func InitConfig(vmType int, ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager { InitDataDir(Datadir) - return ethutil.ReadConfig(ConfigFile, Datadir, EnvPrefix) + cfg := ethutil.ReadConfig(ConfigFile, Datadir, EnvPrefix) + cfg.VmType = vmType + + return cfg } func exit(err error) { |