mirror of https://github.com/status-im/op-geth.git
cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig calls
This commit is contained in:
parent
e6118f2d79
commit
80985f97da
|
@ -59,8 +59,6 @@ func main() {
|
|||
|
||||
logger.AddLogSystem(logger.NewStdLogSystem(os.Stdout, log.LstdFlags, logger.LogLevel(*loglevel)))
|
||||
|
||||
ethutil.ReadConfig("/tmp/evmtest", "/tmp/evm", "")
|
||||
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
statedb := state.New(nil, db)
|
||||
sender := statedb.NewStateObject([]byte("sender"))
|
||||
|
|
|
@ -12,14 +12,12 @@ import (
|
|||
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
"github.com/ethereum/go-ethereum/ethutil"
|
||||
"github.com/ethereum/go-ethereum/event"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
)
|
||||
|
||||
func init() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
ethutil.ReadConfig("/tmp/ethtest", "/tmp/ethtest", "ETH")
|
||||
}
|
||||
|
||||
// Test fork of length N starting from block i
|
||||
|
|
|
@ -62,8 +62,6 @@ func (tm *TestManager) Db() ethutil.Database {
|
|||
}
|
||||
|
||||
func NewTestManager() *TestManager {
|
||||
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "ETH")
|
||||
|
||||
db, err := ethdb.NewMemDatabase()
|
||||
if err != nil {
|
||||
fmt.Println("Could not create mem-db, failing")
|
||||
|
|
|
@ -7,8 +7,6 @@ import (
|
|||
)
|
||||
|
||||
func TestCompression(t *testing.T) {
|
||||
ethutil.ReadConfig("", "/tmp", "")
|
||||
|
||||
db, err := NewLDBDatabase("testdb")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
@ -57,7 +57,6 @@ func (s *StateSuite) TestDump(c *checker.C) {
|
|||
}
|
||||
|
||||
func (s *StateSuite) SetUpTest(c *checker.C) {
|
||||
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
s.state = New(nil, db)
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/ethereum/go-ethereum/ethutil"
|
||||
logpkg "github.com/ethereum/go-ethereum/logger"
|
||||
)
|
||||
|
||||
|
@ -14,6 +13,4 @@ var Log = logpkg.NewLogger("TEST")
|
|||
func init() {
|
||||
Logger = logpkg.NewStdLogSystem(os.Stdout, log.LstdFlags, logpkg.InfoLevel)
|
||||
logpkg.AddLogSystem(Logger)
|
||||
|
||||
ethutil.ReadConfig(".ethtest", "/tmp/ethtest", "")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue