mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +00:00
Do not attempt DNS discovery and change default sync flag (#283)
* Prefer full sync * Do not set DNS discovery
This commit is contained in:
parent
521b3a7833
commit
53d8947bfe
2 changed files with 2 additions and 4 deletions
|
|
@ -347,7 +347,7 @@ func setDefaultMumbaiGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||||
config.Node.HTTPPort = 8545
|
config.Node.HTTPPort = 8545
|
||||||
config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
|
config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
|
||||||
config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
|
config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
|
||||||
config.Eth.SyncMode = downloader.SnapSync
|
config.Eth.SyncMode = downloader.FullSync
|
||||||
config.Eth.NetworkId = 80001
|
config.Eth.NetworkId = 80001
|
||||||
config.Eth.Miner.GasCeil = 20000000
|
config.Eth.Miner.GasCeil = 20000000
|
||||||
//--miner.gastarget is depreceated, No longed used
|
//--miner.gastarget is depreceated, No longed used
|
||||||
|
|
@ -370,7 +370,7 @@ func setDefaultBorMainnetGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||||
config.Node.HTTPPort = 8545
|
config.Node.HTTPPort = 8545
|
||||||
config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
|
config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
|
||||||
config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
|
config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
|
||||||
config.Eth.SyncMode = downloader.SnapSync
|
config.Eth.SyncMode = downloader.FullSync
|
||||||
config.Eth.NetworkId = 137
|
config.Eth.NetworkId = 137
|
||||||
config.Eth.Miner.GasCeil = 20000000
|
config.Eth.Miner.GasCeil = 20000000
|
||||||
//--miner.gastarget is depreceated, No longed used
|
//--miner.gastarget is depreceated, No longed used
|
||||||
|
|
|
||||||
|
|
@ -1645,13 +1645,11 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
cfg.NetworkId = 80001
|
cfg.NetworkId = 80001
|
||||||
}
|
}
|
||||||
cfg.Genesis = core.DefaultMumbaiGenesisBlock()
|
cfg.Genesis = core.DefaultMumbaiGenesisBlock()
|
||||||
SetDNSDiscoveryDefaults(cfg, params.MumbaiGenesisHash)
|
|
||||||
case ctx.GlobalBool(BorMainnetFlag.Name):
|
case ctx.GlobalBool(BorMainnetFlag.Name):
|
||||||
if !ctx.GlobalIsSet(BorMainnetFlag.Name) {
|
if !ctx.GlobalIsSet(BorMainnetFlag.Name) {
|
||||||
cfg.NetworkId = 137
|
cfg.NetworkId = 137
|
||||||
}
|
}
|
||||||
cfg.Genesis = core.DefaultBorMainnetGenesisBlock()
|
cfg.Genesis = core.DefaultBorMainnetGenesisBlock()
|
||||||
SetDNSDiscoveryDefaults(cfg, params.BorMainnetGenesisHash)
|
|
||||||
case ctx.GlobalBool(DeveloperFlag.Name):
|
case ctx.GlobalBool(DeveloperFlag.Name):
|
||||||
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
|
if !ctx.GlobalIsSet(NetworkIdFlag.Name) {
|
||||||
cfg.NetworkId = 1337
|
cfg.NetworkId = 1337
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue