aboutsummaryrefslogtreecommitdiff
path: root/plugin/params.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-20 12:06:08 -0400
committerAaron Buchwald <[email protected]>2020-10-20 12:06:08 -0400
commit77681f0af89a2c22ed24b4a7edb1f7b3d3a6c442 (patch)
tree3373822ee1640cb80c7687b2027f271e3d0dfe48 /plugin/params.go
parent6da65c2173e6da457423d67e958ce153c5598a17 (diff)
Set txpool API to be enabled by default
Diffstat (limited to 'plugin/params.go')
-rw-r--r--plugin/params.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/params.go b/plugin/params.go
index 403424c..9881551 100644
--- a/plugin/params.go
+++ b/plugin/params.go
@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"flag"
+ "os"
"github.com/ava-labs/avalanchego/utils/wrappers"
"github.com/ava-labs/coreth/plugin/evm"
@@ -22,8 +23,15 @@ func init() {
fs := flag.NewFlagSet(name, flag.ContinueOnError)
config := fs.String("coreth-config", "default", "Pass in CLI Config to set runtime attributes for Coreth")
+
+ if err := fs.Parse(os.Args[1:]); err != nil {
+ errs.Add(err)
+ return
+ }
+
if *config == "default" {
cliConfig.EthAPIEnabled = true
+ cliConfig.TxPoolAPIEnabled = true
} else {
errs.Add(json.Unmarshal([]byte(*config), &cliConfig))
}