diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-06 09:46:56 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-06 09:46:56 +0800 |
commit | bdba044a8031d810555196cde1b97792fa2b8084 (patch) | |
tree | 4da485f83721176155a62b021ac2616de1929730 /cmd/ethereum/repl | |
parent | c47866d25174bd783ee6bcd5b400d81d7bf598bb (diff) | |
download | go-tangerine-bdba044a8031d810555196cde1b97792fa2b8084.tar.gz go-tangerine-bdba044a8031d810555196cde1b97792fa2b8084.tar.zst go-tangerine-bdba044a8031d810555196cde1b97792fa2b8084.zip |
ethutil: remove Config variable
Various functions throughout the codebase used it to grab settings. This
has to stop because I want to use them without reading the config file.
These functions can now be used without reading the config first:
* ethdb.NewLDBDatabase
* ethrepl.NewJSRepl
* vm.New
Diffstat (limited to 'cmd/ethereum/repl')
-rw-r--r-- | cmd/ethereum/repl/repl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ethereum/repl/repl.go b/cmd/ethereum/repl/repl.go index ec1aa6918..05ea71e79 100644 --- a/cmd/ethereum/repl/repl.go +++ b/cmd/ethereum/repl/repl.go @@ -54,7 +54,7 @@ type JSRepl struct { } func NewJSRepl(ethereum *eth.Ethereum) *JSRepl { - hist, err := os.OpenFile(path.Join(ethutil.Config.ExecPath, "history"), os.O_RDWR|os.O_CREATE, os.ModePerm) + hist, err := os.OpenFile(path.Join(ethereum.DataDir, "history"), os.O_RDWR|os.O_CREATE, os.ModePerm) if err != nil { panic(err) } |