From eb16a3d313e3da5649b14a27c12ecc0be6db5ee3 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Fri, 26 Aug 2022 11:24:51 +0530 Subject: [PATCH] update defaults in new-cli --- internal/cli/server/config.go | 20 ++++++++++---------- internal/cli/server/config_legacy_test.go | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/internal/cli/server/config.go b/internal/cli/server/config.go index 8a338d2ef5..c6193e6e76 100644 --- a/internal/cli/server/config.go +++ b/internal/cli/server/config.go @@ -423,7 +423,7 @@ func DefaultConfig() *Config { TxPool: &TxPoolConfig{ Locals: []string{}, NoLocals: false, - Journal: "", + Journal: "transactions.rlp", Rejournal: 1 * time.Hour, PriceLimit: 1, PriceBump: 10, @@ -436,7 +436,7 @@ func DefaultConfig() *Config { Sealer: &SealerConfig{ Enabled: false, Etherbase: "", - GasCeil: 20000000, + GasCeil: 30_000_000, GasPrice: big.NewInt(1 * params.GWei), ExtraData: "", }, @@ -457,22 +457,22 @@ func DefaultConfig() *Config { Prefix: "", Host: "localhost", API: []string{"eth", "net", "web3", "txpool", "bor"}, - Cors: []string{"*"}, - VHost: []string{"*"}, + Cors: []string{"localhost"}, + VHost: []string{"localhost"}, }, Ws: &APIConfig{ Enabled: false, Port: 8546, Prefix: "", Host: "localhost", - API: []string{"web3", "net"}, - Cors: []string{"*"}, - VHost: []string{"*"}, + API: []string{"net", "web3"}, + Cors: []string{"localhost"}, + VHost: []string{"localhost"}, }, Graphql: &APIConfig{ Enabled: false, - Cors: []string{"*"}, - VHost: []string{"*"}, + Cors: []string{"localhost"}, + VHost: []string{"localhost"}, }, }, Ethstats: "", @@ -511,7 +511,7 @@ func DefaultConfig() *Config { PasswordFile: "", AllowInsecureUnlock: false, UseLightweightKDF: false, - DisableBorWallet: false, + DisableBorWallet: true, }, GRPC: &GRPCConfig{ Addr: ":3131", diff --git a/internal/cli/server/config_legacy_test.go b/internal/cli/server/config_legacy_test.go index 43263ff010..631542db43 100644 --- a/internal/cli/server/config_legacy_test.go +++ b/internal/cli/server/config_legacy_test.go @@ -140,7 +140,7 @@ func TestConfigLegacy(t *testing.T) { PasswordFile: "", AllowInsecureUnlock: false, UseLightweightKDF: false, - DisableBorWallet: false, + DisableBorWallet: true, }, GRPC: &GRPCConfig{ Addr: ":3131",