mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
update defaults in new-cli
This commit is contained in:
parent
632c1646a8
commit
eb16a3d313
2 changed files with 11 additions and 11 deletions
|
|
@ -423,7 +423,7 @@ func DefaultConfig() *Config {
|
||||||
TxPool: &TxPoolConfig{
|
TxPool: &TxPoolConfig{
|
||||||
Locals: []string{},
|
Locals: []string{},
|
||||||
NoLocals: false,
|
NoLocals: false,
|
||||||
Journal: "",
|
Journal: "transactions.rlp",
|
||||||
Rejournal: 1 * time.Hour,
|
Rejournal: 1 * time.Hour,
|
||||||
PriceLimit: 1,
|
PriceLimit: 1,
|
||||||
PriceBump: 10,
|
PriceBump: 10,
|
||||||
|
|
@ -436,7 +436,7 @@ func DefaultConfig() *Config {
|
||||||
Sealer: &SealerConfig{
|
Sealer: &SealerConfig{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Etherbase: "",
|
Etherbase: "",
|
||||||
GasCeil: 20000000,
|
GasCeil: 30_000_000,
|
||||||
GasPrice: big.NewInt(1 * params.GWei),
|
GasPrice: big.NewInt(1 * params.GWei),
|
||||||
ExtraData: "",
|
ExtraData: "",
|
||||||
},
|
},
|
||||||
|
|
@ -457,22 +457,22 @@ func DefaultConfig() *Config {
|
||||||
Prefix: "",
|
Prefix: "",
|
||||||
Host: "localhost",
|
Host: "localhost",
|
||||||
API: []string{"eth", "net", "web3", "txpool", "bor"},
|
API: []string{"eth", "net", "web3", "txpool", "bor"},
|
||||||
Cors: []string{"*"},
|
Cors: []string{"localhost"},
|
||||||
VHost: []string{"*"},
|
VHost: []string{"localhost"},
|
||||||
},
|
},
|
||||||
Ws: &APIConfig{
|
Ws: &APIConfig{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Port: 8546,
|
Port: 8546,
|
||||||
Prefix: "",
|
Prefix: "",
|
||||||
Host: "localhost",
|
Host: "localhost",
|
||||||
API: []string{"web3", "net"},
|
API: []string{"net", "web3"},
|
||||||
Cors: []string{"*"},
|
Cors: []string{"localhost"},
|
||||||
VHost: []string{"*"},
|
VHost: []string{"localhost"},
|
||||||
},
|
},
|
||||||
Graphql: &APIConfig{
|
Graphql: &APIConfig{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Cors: []string{"*"},
|
Cors: []string{"localhost"},
|
||||||
VHost: []string{"*"},
|
VHost: []string{"localhost"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Ethstats: "",
|
Ethstats: "",
|
||||||
|
|
@ -511,7 +511,7 @@ func DefaultConfig() *Config {
|
||||||
PasswordFile: "",
|
PasswordFile: "",
|
||||||
AllowInsecureUnlock: false,
|
AllowInsecureUnlock: false,
|
||||||
UseLightweightKDF: false,
|
UseLightweightKDF: false,
|
||||||
DisableBorWallet: false,
|
DisableBorWallet: true,
|
||||||
},
|
},
|
||||||
GRPC: &GRPCConfig{
|
GRPC: &GRPCConfig{
|
||||||
Addr: ":3131",
|
Addr: ":3131",
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ func TestConfigLegacy(t *testing.T) {
|
||||||
PasswordFile: "",
|
PasswordFile: "",
|
||||||
AllowInsecureUnlock: false,
|
AllowInsecureUnlock: false,
|
||||||
UseLightweightKDF: false,
|
UseLightweightKDF: false,
|
||||||
DisableBorWallet: false,
|
DisableBorWallet: true,
|
||||||
},
|
},
|
||||||
GRPC: &GRPCConfig{
|
GRPC: &GRPCConfig{
|
||||||
Addr: ":3131",
|
Addr: ":3131",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue