2017-04-12 16:27:23 +02:00
|
|
|
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
|
|
|
|
|
2021-02-05 20:51:15 +08:00
|
|
|
package ethconfig
|
2017-04-12 16:27:23 +02:00
|
|
|
|
|
|
|
import (
|
2018-08-22 03:56:54 +08:00
|
|
|
"time"
|
2017-04-12 16:27:23 +02:00
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/ethereum/go-ethereum/core"
|
2023-07-27 13:45:35 +03:00
|
|
|
"github.com/ethereum/go-ethereum/core/txpool/blobpool"
|
2023-06-16 15:29:40 +03:00
|
|
|
"github.com/ethereum/go-ethereum/core/txpool/legacypool"
|
2017-04-12 16:27:23 +02:00
|
|
|
"github.com/ethereum/go-ethereum/eth/downloader"
|
|
|
|
"github.com/ethereum/go-ethereum/eth/gasprice"
|
2019-04-23 15:08:51 +08:00
|
|
|
"github.com/ethereum/go-ethereum/miner"
|
2017-04-12 16:27:23 +02:00
|
|
|
)
|
|
|
|
|
2018-08-22 03:56:54 +08:00
|
|
|
// MarshalTOML marshals as TOML.
|
2017-04-12 16:27:23 +02:00
|
|
|
func (c Config) MarshalTOML() (interface{}, error) {
|
|
|
|
type Config struct {
|
2023-01-06 15:07:38 +02:00
|
|
|
Genesis *core.Genesis `toml:",omitempty"`
|
|
|
|
NetworkId uint64
|
|
|
|
SyncMode downloader.SyncMode
|
2023-08-23 17:46:08 +08:00
|
|
|
DisablePeerTxBroadcast bool
|
2023-01-06 15:07:38 +02:00
|
|
|
EthDiscoveryURLs []string
|
|
|
|
SnapDiscoveryURLs []string
|
2023-08-23 17:46:08 +08:00
|
|
|
TrustDiscoveryURLs []string
|
|
|
|
BscDiscoveryURLs []string
|
2023-01-06 15:07:38 +02:00
|
|
|
NoPruning bool
|
|
|
|
NoPrefetch bool
|
2023-08-23 17:46:08 +08:00
|
|
|
DirectBroadcast bool
|
|
|
|
DisableSnapProtocol bool
|
|
|
|
EnableTrustProtocol bool
|
|
|
|
PipeCommit bool
|
|
|
|
RangeLimit bool
|
2024-05-14 16:37:17 +08:00
|
|
|
TxLookupLimit uint64 `toml:",omitempty"`
|
|
|
|
TransactionHistory uint64 `toml:",omitempty"`
|
|
|
|
StateHistory uint64 `toml:",omitempty"`
|
|
|
|
StateScheme string `toml:",omitempty"`
|
|
|
|
PathSyncFlush bool `toml:",omitempty"`
|
|
|
|
JournalFileEnabled bool
|
2023-01-06 15:07:38 +02:00
|
|
|
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
|
|
|
LightServ int `toml:",omitempty"`
|
|
|
|
LightIngress int `toml:",omitempty"`
|
|
|
|
LightEgress int `toml:",omitempty"`
|
|
|
|
LightPeers int `toml:",omitempty"`
|
|
|
|
LightNoPrune bool `toml:",omitempty"`
|
|
|
|
LightNoSyncServe bool `toml:",omitempty"`
|
|
|
|
SkipBcVersionCheck bool `toml:"-"`
|
|
|
|
DatabaseHandles int `toml:"-"`
|
|
|
|
DatabaseCache int
|
|
|
|
DatabaseFreezer string
|
2023-08-23 17:46:08 +08:00
|
|
|
DatabaseDiff string
|
|
|
|
PersistDiff bool
|
|
|
|
DiffBlock uint64
|
|
|
|
PruneAncientData bool
|
2023-01-06 15:07:38 +02:00
|
|
|
TrieCleanCache int
|
|
|
|
TrieDirtyCache int
|
|
|
|
TrieTimeout time.Duration
|
|
|
|
SnapshotCache int
|
2023-08-23 17:46:08 +08:00
|
|
|
TriesInMemory uint64
|
|
|
|
TriesVerifyMode core.VerifyMode
|
2023-01-06 15:07:38 +02:00
|
|
|
Preimages bool
|
|
|
|
FilterLogCacheSize int
|
|
|
|
Miner miner.Config
|
2023-06-16 15:29:40 +03:00
|
|
|
TxPool legacypool.Config
|
2023-07-27 13:45:35 +03:00
|
|
|
BlobPool blobpool.Config
|
2023-01-06 15:07:38 +02:00
|
|
|
GPO gasprice.Config
|
|
|
|
EnablePreimageRecording bool
|
|
|
|
DocRoot string `toml:"-"`
|
|
|
|
RPCGasCap uint64
|
|
|
|
RPCEVMTimeout time.Duration
|
|
|
|
RPCTxFeeCap float64
|
2024-05-30 11:51:34 +08:00
|
|
|
OverrideBohr *uint64 `toml:",omitempty"`
|
2023-06-28 11:08:48 +02:00
|
|
|
OverrideVerkle *uint64 `toml:",omitempty"`
|
2024-05-14 16:37:17 +08:00
|
|
|
BlobExtraReserve uint64
|
2017-04-12 16:27:23 +02:00
|
|
|
}
|
|
|
|
var enc Config
|
|
|
|
enc.Genesis = c.Genesis
|
|
|
|
enc.NetworkId = c.NetworkId
|
|
|
|
enc.SyncMode = c.SyncMode
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.DisablePeerTxBroadcast = c.DisablePeerTxBroadcast
|
2020-12-14 11:27:15 +02:00
|
|
|
enc.EthDiscoveryURLs = c.EthDiscoveryURLs
|
2021-01-19 17:52:45 +08:00
|
|
|
enc.SnapDiscoveryURLs = c.SnapDiscoveryURLs
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.TrustDiscoveryURLs = c.TrustDiscoveryURLs
|
2023-04-10 18:36:45 +08:00
|
|
|
enc.BscDiscoveryURLs = c.BscDiscoveryURLs
|
2018-08-22 03:56:54 +08:00
|
|
|
enc.NoPruning = c.NoPruning
|
2019-04-23 15:08:51 +08:00
|
|
|
enc.NoPrefetch = c.NoPrefetch
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.DirectBroadcast = c.DirectBroadcast
|
|
|
|
enc.DisableSnapProtocol = c.DisableSnapProtocol
|
|
|
|
enc.EnableTrustProtocol = c.EnableTrustProtocol
|
2023-08-23 17:46:08 +08:00
|
|
|
enc.PipeCommit = c.PipeCommit
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.RangeLimit = c.RangeLimit
|
2020-05-11 17:58:43 +02:00
|
|
|
enc.TxLookupLimit = c.TxLookupLimit
|
all: activate pbss as experimental feature from eth (#26274)
* all: activate pbss
* core/rawdb: fix compilation error
* cma, core, eth, les, trie: address comments
* cmd, core, eth, trie: polish code
* core, cmd, eth: address comments
* cmd, core, eth, les, light, tests: address comment
* cmd/utils: shorten log message
* trie/triedb/pathdb: limit node buffer size to 1gb
* cmd/utils: fix opening non-existing db
* cmd/utils: rename flag name
* cmd, core: group chain history flags and fix tests
* core, eth, trie: fix memory leak in snapshot generation
* cmd, eth, internal: deprecate flags
* all: enable state tests for pathdb, fixes
* cmd, core: polish code
* trie/triedb/pathdb: limit the node buffer size to 256mb
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2023-08-11 03:21:36 +08:00
|
|
|
enc.TransactionHistory = c.TransactionHistory
|
|
|
|
enc.StateHistory = c.StateHistory
|
|
|
|
enc.StateScheme = c.StateScheme
|
2023-12-26 14:12:51 +08:00
|
|
|
enc.PathSyncFlush = c.PathSyncFlush
|
2024-05-14 16:37:17 +08:00
|
|
|
enc.JournalFileEnabled = c.JournalFileEnabled
|
2022-05-04 19:55:17 +03:00
|
|
|
enc.RequiredBlocks = c.RequiredBlocks
|
2017-04-12 16:27:23 +02:00
|
|
|
enc.LightServ = c.LightServ
|
2019-07-10 08:54:06 +03:00
|
|
|
enc.LightIngress = c.LightIngress
|
|
|
|
enc.LightEgress = c.LightEgress
|
2017-04-12 16:27:23 +02:00
|
|
|
enc.LightPeers = c.LightPeers
|
2020-07-13 17:02:54 +08:00
|
|
|
enc.LightNoPrune = c.LightNoPrune
|
2021-02-25 20:55:07 +08:00
|
|
|
enc.LightNoSyncServe = c.LightNoSyncServe
|
2017-04-12 16:27:23 +02:00
|
|
|
enc.SkipBcVersionCheck = c.SkipBcVersionCheck
|
|
|
|
enc.DatabaseHandles = c.DatabaseHandles
|
|
|
|
enc.DatabaseCache = c.DatabaseCache
|
all: on-chain oracle checkpoint syncing (#19543)
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
2019-06-28 15:34:02 +08:00
|
|
|
enc.DatabaseFreezer = c.DatabaseFreezer
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.DatabaseDiff = c.DatabaseDiff
|
|
|
|
enc.PersistDiff = c.PersistDiff
|
|
|
|
enc.DiffBlock = c.DiffBlock
|
2023-08-23 17:46:08 +08:00
|
|
|
enc.PruneAncientData = c.PruneAncientData
|
2018-11-12 18:47:34 +02:00
|
|
|
enc.TrieCleanCache = c.TrieCleanCache
|
|
|
|
enc.TrieDirtyCache = c.TrieDirtyCache
|
2018-08-22 03:56:54 +08:00
|
|
|
enc.TrieTimeout = c.TrieTimeout
|
2020-06-17 15:46:31 +08:00
|
|
|
enc.SnapshotCache = c.SnapshotCache
|
2022-07-05 11:14:21 +08:00
|
|
|
enc.TriesInMemory = c.TriesInMemory
|
|
|
|
enc.TriesVerifyMode = c.TriesVerifyMode
|
2020-11-18 17:51:33 +08:00
|
|
|
enc.Preimages = c.Preimages
|
2022-08-19 11:14:59 +02:00
|
|
|
enc.FilterLogCacheSize = c.FilterLogCacheSize
|
2019-04-23 15:08:51 +08:00
|
|
|
enc.Miner = c.Miner
|
2017-05-26 13:40:47 +03:00
|
|
|
enc.TxPool = c.TxPool
|
2023-07-27 13:45:35 +03:00
|
|
|
enc.BlobPool = c.BlobPool
|
2017-04-12 16:27:23 +02:00
|
|
|
enc.GPO = c.GPO
|
|
|
|
enc.EnablePreimageRecording = c.EnablePreimageRecording
|
|
|
|
enc.DocRoot = c.DocRoot
|
2019-04-23 15:08:51 +08:00
|
|
|
enc.RPCGasCap = c.RPCGasCap
|
2021-10-12 04:46:04 -04:00
|
|
|
enc.RPCEVMTimeout = c.RPCEVMTimeout
|
2020-06-17 15:46:31 +08:00
|
|
|
enc.RPCTxFeeCap = c.RPCTxFeeCap
|
2024-05-30 11:51:34 +08:00
|
|
|
enc.OverrideBohr = c.OverrideBohr
|
2023-06-28 11:08:48 +02:00
|
|
|
enc.OverrideVerkle = c.OverrideVerkle
|
2024-05-14 16:37:17 +08:00
|
|
|
enc.BlobExtraReserve = c.BlobExtraReserve
|
2017-04-12 16:27:23 +02:00
|
|
|
return &enc, nil
|
|
|
|
}
|
|
|
|
|
2018-08-22 03:56:54 +08:00
|
|
|
// UnmarshalTOML unmarshals from TOML.
|
2017-04-12 16:27:23 +02:00
|
|
|
func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
|
|
|
type Config struct {
|
2023-01-06 15:07:38 +02:00
|
|
|
Genesis *core.Genesis `toml:",omitempty"`
|
|
|
|
NetworkId *uint64
|
|
|
|
SyncMode *downloader.SyncMode
|
2023-08-23 17:46:08 +08:00
|
|
|
DisablePeerTxBroadcast *bool
|
2023-01-06 15:07:38 +02:00
|
|
|
EthDiscoveryURLs []string
|
|
|
|
SnapDiscoveryURLs []string
|
2023-08-23 17:46:08 +08:00
|
|
|
TrustDiscoveryURLs []string
|
|
|
|
BscDiscoveryURLs []string
|
2023-01-06 15:07:38 +02:00
|
|
|
NoPruning *bool
|
|
|
|
NoPrefetch *bool
|
2023-08-23 17:46:08 +08:00
|
|
|
DirectBroadcast *bool
|
|
|
|
DisableSnapProtocol *bool
|
|
|
|
EnableTrustProtocol *bool
|
|
|
|
PipeCommit *bool
|
|
|
|
RangeLimit *bool
|
2024-05-14 16:37:17 +08:00
|
|
|
TxLookupLimit *uint64 `toml:",omitempty"`
|
|
|
|
TransactionHistory *uint64 `toml:",omitempty"`
|
|
|
|
StateHistory *uint64 `toml:",omitempty"`
|
|
|
|
StateScheme *string `toml:",omitempty"`
|
|
|
|
PathSyncFlush *bool `toml:",omitempty"`
|
|
|
|
JournalFileEnabled *bool
|
2023-01-06 15:07:38 +02:00
|
|
|
RequiredBlocks map[uint64]common.Hash `toml:"-"`
|
|
|
|
LightServ *int `toml:",omitempty"`
|
|
|
|
LightIngress *int `toml:",omitempty"`
|
|
|
|
LightEgress *int `toml:",omitempty"`
|
|
|
|
LightPeers *int `toml:",omitempty"`
|
|
|
|
LightNoPrune *bool `toml:",omitempty"`
|
|
|
|
LightNoSyncServe *bool `toml:",omitempty"`
|
|
|
|
SkipBcVersionCheck *bool `toml:"-"`
|
|
|
|
DatabaseHandles *int `toml:"-"`
|
|
|
|
DatabaseCache *int
|
|
|
|
DatabaseFreezer *string
|
2023-08-23 17:46:08 +08:00
|
|
|
DatabaseDiff *string
|
|
|
|
PersistDiff *bool
|
|
|
|
DiffBlock *uint64
|
|
|
|
PruneAncientData *bool
|
2023-01-06 15:07:38 +02:00
|
|
|
TrieCleanCache *int
|
|
|
|
TrieDirtyCache *int
|
|
|
|
TrieTimeout *time.Duration
|
|
|
|
SnapshotCache *int
|
2023-08-23 17:46:08 +08:00
|
|
|
TriesInMemory *uint64
|
|
|
|
TriesVerifyMode *core.VerifyMode
|
2023-01-06 15:07:38 +02:00
|
|
|
Preimages *bool
|
|
|
|
FilterLogCacheSize *int
|
|
|
|
Miner *miner.Config
|
2023-06-16 15:29:40 +03:00
|
|
|
TxPool *legacypool.Config
|
2023-07-27 13:45:35 +03:00
|
|
|
BlobPool *blobpool.Config
|
2023-01-06 15:07:38 +02:00
|
|
|
GPO *gasprice.Config
|
|
|
|
EnablePreimageRecording *bool
|
|
|
|
DocRoot *string `toml:"-"`
|
|
|
|
RPCGasCap *uint64
|
|
|
|
RPCEVMTimeout *time.Duration
|
|
|
|
RPCTxFeeCap *float64
|
2024-05-30 11:51:34 +08:00
|
|
|
OverrideBohr *uint64 `toml:",omitempty"`
|
2023-06-28 11:08:48 +02:00
|
|
|
OverrideVerkle *uint64 `toml:",omitempty"`
|
2024-05-14 16:37:17 +08:00
|
|
|
BlobExtraReserve *uint64
|
2017-04-12 16:27:23 +02:00
|
|
|
}
|
|
|
|
var dec Config
|
|
|
|
if err := unmarshal(&dec); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if dec.Genesis != nil {
|
|
|
|
c.Genesis = dec.Genesis
|
|
|
|
}
|
|
|
|
if dec.NetworkId != nil {
|
|
|
|
c.NetworkId = *dec.NetworkId
|
|
|
|
}
|
|
|
|
if dec.SyncMode != nil {
|
|
|
|
c.SyncMode = *dec.SyncMode
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.DisablePeerTxBroadcast != nil {
|
|
|
|
c.DisablePeerTxBroadcast = *dec.DisablePeerTxBroadcast
|
|
|
|
}
|
2020-12-14 11:27:15 +02:00
|
|
|
if dec.EthDiscoveryURLs != nil {
|
|
|
|
c.EthDiscoveryURLs = dec.EthDiscoveryURLs
|
2020-02-13 14:38:30 +01:00
|
|
|
}
|
2021-01-19 17:52:45 +08:00
|
|
|
if dec.SnapDiscoveryURLs != nil {
|
|
|
|
c.SnapDiscoveryURLs = dec.SnapDiscoveryURLs
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.TrustDiscoveryURLs != nil {
|
|
|
|
c.TrustDiscoveryURLs = dec.TrustDiscoveryURLs
|
|
|
|
}
|
2023-04-10 18:36:45 +08:00
|
|
|
if dec.BscDiscoveryURLs != nil {
|
|
|
|
c.BscDiscoveryURLs = dec.BscDiscoveryURLs
|
|
|
|
}
|
2018-08-22 03:56:54 +08:00
|
|
|
if dec.NoPruning != nil {
|
|
|
|
c.NoPruning = *dec.NoPruning
|
|
|
|
}
|
2019-04-23 15:08:51 +08:00
|
|
|
if dec.NoPrefetch != nil {
|
|
|
|
c.NoPrefetch = *dec.NoPrefetch
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.DirectBroadcast != nil {
|
|
|
|
c.DirectBroadcast = *dec.DirectBroadcast
|
|
|
|
}
|
|
|
|
if dec.DisableSnapProtocol != nil {
|
|
|
|
c.DisableSnapProtocol = *dec.DisableSnapProtocol
|
|
|
|
}
|
|
|
|
if dec.EnableTrustProtocol != nil {
|
|
|
|
c.EnableTrustProtocol = *dec.EnableTrustProtocol
|
|
|
|
}
|
2023-08-23 17:46:08 +08:00
|
|
|
if dec.PipeCommit != nil {
|
|
|
|
c.PipeCommit = *dec.PipeCommit
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.RangeLimit != nil {
|
|
|
|
c.RangeLimit = *dec.RangeLimit
|
2019-04-23 15:08:51 +08:00
|
|
|
}
|
2020-05-11 17:58:43 +02:00
|
|
|
if dec.TxLookupLimit != nil {
|
|
|
|
c.TxLookupLimit = *dec.TxLookupLimit
|
|
|
|
}
|
all: activate pbss as experimental feature from eth (#26274)
* all: activate pbss
* core/rawdb: fix compilation error
* cma, core, eth, les, trie: address comments
* cmd, core, eth, trie: polish code
* core, cmd, eth: address comments
* cmd, core, eth, les, light, tests: address comment
* cmd/utils: shorten log message
* trie/triedb/pathdb: limit node buffer size to 1gb
* cmd/utils: fix opening non-existing db
* cmd/utils: rename flag name
* cmd, core: group chain history flags and fix tests
* core, eth, trie: fix memory leak in snapshot generation
* cmd, eth, internal: deprecate flags
* all: enable state tests for pathdb, fixes
* cmd, core: polish code
* trie/triedb/pathdb: limit the node buffer size to 256mb
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2023-08-11 03:21:36 +08:00
|
|
|
if dec.TransactionHistory != nil {
|
|
|
|
c.TransactionHistory = *dec.TransactionHistory
|
|
|
|
}
|
|
|
|
if dec.StateHistory != nil {
|
|
|
|
c.StateHistory = *dec.StateHistory
|
|
|
|
}
|
|
|
|
if dec.StateScheme != nil {
|
|
|
|
c.StateScheme = *dec.StateScheme
|
|
|
|
}
|
2023-12-26 14:12:51 +08:00
|
|
|
if dec.PathSyncFlush != nil {
|
|
|
|
c.PathSyncFlush = *dec.PathSyncFlush
|
|
|
|
}
|
2024-05-14 16:37:17 +08:00
|
|
|
if dec.JournalFileEnabled != nil {
|
|
|
|
c.JournalFileEnabled = *dec.JournalFileEnabled
|
|
|
|
}
|
2022-05-04 19:55:17 +03:00
|
|
|
if dec.RequiredBlocks != nil {
|
|
|
|
c.RequiredBlocks = dec.RequiredBlocks
|
2019-04-23 15:08:51 +08:00
|
|
|
}
|
2017-04-12 16:27:23 +02:00
|
|
|
if dec.LightServ != nil {
|
|
|
|
c.LightServ = *dec.LightServ
|
|
|
|
}
|
2019-07-10 08:54:06 +03:00
|
|
|
if dec.LightIngress != nil {
|
|
|
|
c.LightIngress = *dec.LightIngress
|
2019-02-26 12:32:48 +01:00
|
|
|
}
|
2019-07-10 08:54:06 +03:00
|
|
|
if dec.LightEgress != nil {
|
|
|
|
c.LightEgress = *dec.LightEgress
|
2019-02-26 12:32:48 +01:00
|
|
|
}
|
2017-04-12 16:27:23 +02:00
|
|
|
if dec.LightPeers != nil {
|
|
|
|
c.LightPeers = *dec.LightPeers
|
|
|
|
}
|
2020-07-13 17:02:54 +08:00
|
|
|
if dec.LightNoPrune != nil {
|
|
|
|
c.LightNoPrune = *dec.LightNoPrune
|
|
|
|
}
|
2021-02-25 20:55:07 +08:00
|
|
|
if dec.LightNoSyncServe != nil {
|
|
|
|
c.LightNoSyncServe = *dec.LightNoSyncServe
|
|
|
|
}
|
2017-04-12 16:27:23 +02:00
|
|
|
if dec.SkipBcVersionCheck != nil {
|
|
|
|
c.SkipBcVersionCheck = *dec.SkipBcVersionCheck
|
|
|
|
}
|
|
|
|
if dec.DatabaseHandles != nil {
|
|
|
|
c.DatabaseHandles = *dec.DatabaseHandles
|
|
|
|
}
|
|
|
|
if dec.DatabaseCache != nil {
|
|
|
|
c.DatabaseCache = *dec.DatabaseCache
|
|
|
|
}
|
all: on-chain oracle checkpoint syncing (#19543)
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
2019-06-28 15:34:02 +08:00
|
|
|
if dec.DatabaseFreezer != nil {
|
|
|
|
c.DatabaseFreezer = *dec.DatabaseFreezer
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.DatabaseDiff != nil {
|
|
|
|
c.DatabaseDiff = *dec.DatabaseDiff
|
|
|
|
}
|
|
|
|
if dec.PersistDiff != nil {
|
|
|
|
c.PersistDiff = *dec.PersistDiff
|
|
|
|
}
|
|
|
|
if dec.DiffBlock != nil {
|
|
|
|
c.DiffBlock = *dec.DiffBlock
|
|
|
|
}
|
|
|
|
if dec.PruneAncientData != nil {
|
|
|
|
c.PruneAncientData = *dec.PruneAncientData
|
|
|
|
}
|
2018-11-12 18:47:34 +02:00
|
|
|
if dec.TrieCleanCache != nil {
|
|
|
|
c.TrieCleanCache = *dec.TrieCleanCache
|
|
|
|
}
|
|
|
|
if dec.TrieDirtyCache != nil {
|
|
|
|
c.TrieDirtyCache = *dec.TrieDirtyCache
|
2018-08-22 03:56:54 +08:00
|
|
|
}
|
|
|
|
if dec.TrieTimeout != nil {
|
|
|
|
c.TrieTimeout = *dec.TrieTimeout
|
|
|
|
}
|
2020-06-17 15:46:31 +08:00
|
|
|
if dec.SnapshotCache != nil {
|
|
|
|
c.SnapshotCache = *dec.SnapshotCache
|
|
|
|
}
|
2022-07-05 11:14:21 +08:00
|
|
|
if dec.TriesInMemory != nil {
|
|
|
|
c.TriesInMemory = *dec.TriesInMemory
|
|
|
|
}
|
|
|
|
if dec.TriesVerifyMode != nil {
|
|
|
|
c.TriesVerifyMode = *dec.TriesVerifyMode
|
|
|
|
}
|
2020-11-18 17:51:33 +08:00
|
|
|
if dec.Preimages != nil {
|
|
|
|
c.Preimages = *dec.Preimages
|
|
|
|
}
|
2022-08-19 11:14:59 +02:00
|
|
|
if dec.FilterLogCacheSize != nil {
|
|
|
|
c.FilterLogCacheSize = *dec.FilterLogCacheSize
|
|
|
|
}
|
2019-04-23 15:08:51 +08:00
|
|
|
if dec.Miner != nil {
|
|
|
|
c.Miner = *dec.Miner
|
2018-08-28 21:59:05 +08:00
|
|
|
}
|
2017-05-26 13:40:47 +03:00
|
|
|
if dec.TxPool != nil {
|
|
|
|
c.TxPool = *dec.TxPool
|
|
|
|
}
|
2023-07-27 13:45:35 +03:00
|
|
|
if dec.BlobPool != nil {
|
|
|
|
c.BlobPool = *dec.BlobPool
|
|
|
|
}
|
2017-04-12 16:27:23 +02:00
|
|
|
if dec.GPO != nil {
|
|
|
|
c.GPO = *dec.GPO
|
|
|
|
}
|
|
|
|
if dec.EnablePreimageRecording != nil {
|
|
|
|
c.EnablePreimageRecording = *dec.EnablePreimageRecording
|
|
|
|
}
|
|
|
|
if dec.DocRoot != nil {
|
|
|
|
c.DocRoot = *dec.DocRoot
|
|
|
|
}
|
2019-04-23 15:08:51 +08:00
|
|
|
if dec.RPCGasCap != nil {
|
2020-07-01 19:54:21 +02:00
|
|
|
c.RPCGasCap = *dec.RPCGasCap
|
2019-04-23 15:08:51 +08:00
|
|
|
}
|
2021-10-12 04:46:04 -04:00
|
|
|
if dec.RPCEVMTimeout != nil {
|
|
|
|
c.RPCEVMTimeout = *dec.RPCEVMTimeout
|
|
|
|
}
|
2020-06-17 15:46:31 +08:00
|
|
|
if dec.RPCTxFeeCap != nil {
|
|
|
|
c.RPCTxFeeCap = *dec.RPCTxFeeCap
|
|
|
|
}
|
2024-05-30 11:51:34 +08:00
|
|
|
if dec.OverrideBohr != nil {
|
|
|
|
c.OverrideBohr = dec.OverrideBohr
|
|
|
|
}
|
2023-06-28 11:08:48 +02:00
|
|
|
if dec.OverrideVerkle != nil {
|
|
|
|
c.OverrideVerkle = dec.OverrideVerkle
|
all: core rework for the merge transition (#23761)
* all: work for eth1/2 transtition
* consensus/beacon, eth: change beacon difficulty to 0
* eth: updates
* all: add terminalBlockDifficulty config, fix rebasing issues
* eth: implemented merge interop spec
* internal/ethapi: update to v1.0.0.alpha.2
This commit updates the code to the new spec, moving payloadId into
it's own object. It also fixes an issue with finalizing an empty blockhash.
It also properly sets the basefee
* all: sync polishes, other fixes + refactors
* core, eth: correct semantics for LeavePoW, EnterPoS
* core: fixed rebasing artifacts
* core: light: performance improvements
* core: use keyed field (f)
* core: eth: fix compilation issues + tests
* eth/catalyst: dbetter error codes
* all: move Merger to consensus/, remove reliance on it in bc
* all: renamed EnterPoS and LeavePoW to ReachTDD and FinalizePoS
* core: make mergelogs a function
* core: use InsertChain instead of InsertBlock
* les: drop merger from lightchain object
* consensus: add merger
* core: recoverAncestors in catalyst mode
* core: fix nitpick
* all: removed merger from beacon, use TTD, nitpicks
* consensus: eth: add docstring, removed unnecessary code duplication
* consensus/beacon: better comment
* all: easy to fix nitpicks by karalabe
* consensus/beacon: verify known headers to be sure
* core: comments
* core: eth: don't drop peers who advertise blocks, nitpicks
* core: never add beacon blocks to the future queue
* core: fixed nitpicks
* consensus/beacon: simplify IsTTDReached check
* consensus/beacon: correct IsTTDReached check
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-11-26 12:23:02 +01:00
|
|
|
}
|
2024-05-14 16:37:17 +08:00
|
|
|
if dec.BlobExtraReserve != nil {
|
|
|
|
c.BlobExtraReserve = *dec.BlobExtraReserve
|
2024-03-19 14:33:11 +08:00
|
|
|
}
|
2017-04-12 16:27:23 +02:00
|
|
|
return nil
|
|
|
|
}
|