mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
feat: lint
This commit is contained in:
parent
7c56619782
commit
4c4fd5e64e
1 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
NoPruning bool
|
NoPruning bool
|
||||||
NoPrefetch bool
|
NoPrefetch bool
|
||||||
TxLookupLimit uint64 `toml:",omitempty"`
|
TxLookupLimit uint64 `toml:",omitempty"`
|
||||||
|
TxIndexSender bool `toml:",omitempty"`
|
||||||
TransactionHistory uint64 `toml:",omitempty"`
|
TransactionHistory uint64 `toml:",omitempty"`
|
||||||
LogHistory uint64 `toml:",omitempty"`
|
LogHistory uint64 `toml:",omitempty"`
|
||||||
LogNoHistory bool `toml:",omitempty"`
|
LogNoHistory bool `toml:",omitempty"`
|
||||||
|
|
@ -79,6 +80,7 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
enc.NoPruning = c.NoPruning
|
enc.NoPruning = c.NoPruning
|
||||||
enc.NoPrefetch = c.NoPrefetch
|
enc.NoPrefetch = c.NoPrefetch
|
||||||
enc.TxLookupLimit = c.TxLookupLimit
|
enc.TxLookupLimit = c.TxLookupLimit
|
||||||
|
enc.TxIndexSender = c.TxIndexSender
|
||||||
enc.TransactionHistory = c.TransactionHistory
|
enc.TransactionHistory = c.TransactionHistory
|
||||||
enc.LogHistory = c.LogHistory
|
enc.LogHistory = c.LogHistory
|
||||||
enc.LogNoHistory = c.LogNoHistory
|
enc.LogNoHistory = c.LogNoHistory
|
||||||
|
|
@ -136,6 +138,7 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
NoPruning *bool
|
NoPruning *bool
|
||||||
NoPrefetch *bool
|
NoPrefetch *bool
|
||||||
TxLookupLimit *uint64 `toml:",omitempty"`
|
TxLookupLimit *uint64 `toml:",omitempty"`
|
||||||
|
TxIndexSender *bool `toml:",omitempty"`
|
||||||
TransactionHistory *uint64 `toml:",omitempty"`
|
TransactionHistory *uint64 `toml:",omitempty"`
|
||||||
LogHistory *uint64 `toml:",omitempty"`
|
LogHistory *uint64 `toml:",omitempty"`
|
||||||
LogNoHistory *bool `toml:",omitempty"`
|
LogNoHistory *bool `toml:",omitempty"`
|
||||||
|
|
@ -210,6 +213,9 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
if dec.TxLookupLimit != nil {
|
if dec.TxLookupLimit != nil {
|
||||||
c.TxLookupLimit = *dec.TxLookupLimit
|
c.TxLookupLimit = *dec.TxLookupLimit
|
||||||
}
|
}
|
||||||
|
if dec.TxIndexSender != nil {
|
||||||
|
c.TxIndexSender = *dec.TxIndexSender
|
||||||
|
}
|
||||||
if dec.TransactionHistory != nil {
|
if dec.TransactionHistory != nil {
|
||||||
c.TransactionHistory = *dec.TransactionHistory
|
c.TransactionHistory = *dec.TransactionHistory
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue