update defaults in new-cli

This commit is contained in:
Manav Darji 2022-08-26 11:24:51 +05:30
parent 632c1646a8
commit eb16a3d313
2 changed files with 11 additions and 11 deletions

View file

@ -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",

View file

@ -140,7 +140,7 @@ func TestConfigLegacy(t *testing.T) {
PasswordFile: "",
AllowInsecureUnlock: false,
UseLightweightKDF: false,
DisableBorWallet: false,
DisableBorWallet: true,
},
GRPC: &GRPCConfig{
Addr: ":3131",