mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Latest changes
This commit is contained in:
parent
8ee5d4bf63
commit
5de11331d5
2 changed files with 4 additions and 14 deletions
|
|
@ -35,16 +35,9 @@ import (
|
|||
|
||||
// DefaultConfig contains default settings for use on the Ethereum main net.
|
||||
var DefaultConfig = Config{
|
||||
SyncMode: downloader.FastSync,
|
||||
Ethash: ethash.Config{
|
||||
CacheDir: "ethash",
|
||||
CachesInMem: 2,
|
||||
CachesOnDisk: 3,
|
||||
DatasetsInMem: 1,
|
||||
DatasetsOnDisk: 2,
|
||||
},
|
||||
NetworkId: 1,
|
||||
LightPeers: 100,
|
||||
SyncMode: downloader.FullSync,
|
||||
NetworkId: 1515,
|
||||
LightPeers: 20,
|
||||
DatabaseCache: 768,
|
||||
TrieCache: 256,
|
||||
TrieTimeout: 60 * time.Minute,
|
||||
|
|
@ -102,9 +95,6 @@ type Config struct {
|
|||
ExtraData []byte `toml:",omitempty"`
|
||||
GasPrice *big.Int
|
||||
|
||||
// Ethash options
|
||||
Ethash ethash.Config
|
||||
|
||||
// Transaction pool options
|
||||
TxPool core.TxPoolConfig
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ type ChainConfig struct {
|
|||
ConstantinopleBlock *big.Int `json:"constantinopleBlock,omitempty"` // Constantinople switch block (nil = no fork, 0 = already activated)
|
||||
|
||||
// Various consensus engines
|
||||
LCP *LcpConfig `json:"LCP,omitempty"`
|
||||
LCP *LcpConfig `json:"lcp,omitempty"`
|
||||
}
|
||||
|
||||
// LCP is the consensus engine.
|
||||
|
|
|
|||
Loading…
Reference in a new issue