all: remove noop vm config flags (#23111)
* all: rm external interpreter and ewasm config * core/vm: rm Interpreter interface * cmd/geth: deprecate interpreter config fields
This commit is contained in:
@ -18,7 +18,6 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -34,17 +33,6 @@ import (
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
)
|
||||
|
||||
// Command line flags to configure the interpreters.
|
||||
var (
|
||||
testEVM = flag.String("vm.evm", "", "EVM configuration")
|
||||
testEWASM = flag.String("vm.ewasm", "", "EWASM configuration")
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
flag.Parse()
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
var (
|
||||
baseDir = filepath.Join(".", "testdata")
|
||||
blockTestDir = filepath.Join(baseDir, "BlockchainTests")
|
||||
|
@ -92,7 +92,7 @@ const traceErrorLimit = 400000
|
||||
|
||||
func withTrace(t *testing.T, gasLimit uint64, test func(vm.Config) error) {
|
||||
// Use config from command line arguments.
|
||||
config := vm.Config{EVMInterpreter: *testEVM, EWASMInterpreter: *testEWASM}
|
||||
config := vm.Config{}
|
||||
err := test(config)
|
||||
if err == nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user