mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-30 02:07:36 +00:00
cmd/utils, eth/ethconfig: remove flag docroot
This commit is contained in:
parent
95c7b224af
commit
ccf8ff2e64
3 changed files with 0 additions and 18 deletions
|
|
@ -138,12 +138,6 @@ var (
|
||||||
Usage: "Custom node name",
|
Usage: "Custom node name",
|
||||||
Category: flags.NetworkingCategory,
|
Category: flags.NetworkingCategory,
|
||||||
}
|
}
|
||||||
DocRootFlag = &flags.DirectoryFlag{
|
|
||||||
Name: "docroot",
|
|
||||||
Usage: "Document Root for HTTPClient file scheme",
|
|
||||||
Value: flags.DirectoryString(flags.HomeDir()),
|
|
||||||
Category: flags.APICategory,
|
|
||||||
}
|
|
||||||
|
|
||||||
SyncModeFlag = &cli.StringFlag{
|
SyncModeFlag = &cli.StringFlag{
|
||||||
Name: "syncmode",
|
Name: "syncmode",
|
||||||
|
|
@ -1402,9 +1396,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
if ctx.IsSet(MinerThreadsFlag.Name) {
|
if ctx.IsSet(MinerThreadsFlag.Name) {
|
||||||
cfg.MinerThreads = ctx.Int(MinerThreadsFlag.Name)
|
cfg.MinerThreads = ctx.Int(MinerThreadsFlag.Name)
|
||||||
}
|
}
|
||||||
if ctx.IsSet(DocRootFlag.Name) {
|
|
||||||
cfg.DocRoot = ctx.String(DocRootFlag.Name)
|
|
||||||
}
|
|
||||||
if ctx.IsSet(RPCGlobalGasCapFlag.Name) {
|
if ctx.IsSet(RPCGlobalGasCapFlag.Name) {
|
||||||
cfg.RPCGasCap = ctx.Uint64(RPCGlobalGasCapFlag.Name)
|
cfg.RPCGasCap = ctx.Uint64(RPCGlobalGasCapFlag.Name)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,9 +136,6 @@ type Config struct {
|
||||||
// Enables tracking of SHA3 preimages in the VM
|
// Enables tracking of SHA3 preimages in the VM
|
||||||
EnablePreimageRecording bool
|
EnablePreimageRecording bool
|
||||||
|
|
||||||
// Miscellaneous options
|
|
||||||
DocRoot string `toml:"-"`
|
|
||||||
|
|
||||||
// RPCGasCap is the global gas cap for eth-call variants.
|
// RPCGasCap is the global gas cap for eth-call variants.
|
||||||
RPCGasCap uint64
|
RPCGasCap uint64
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
TxPool txpool.Config
|
TxPool txpool.Config
|
||||||
GPO gasprice.Config
|
GPO gasprice.Config
|
||||||
EnablePreimageRecording bool
|
EnablePreimageRecording bool
|
||||||
DocRoot string `toml:"-"`
|
|
||||||
RPCGasCap uint64
|
RPCGasCap uint64
|
||||||
RPCTxFeeCap float64
|
RPCTxFeeCap float64
|
||||||
}
|
}
|
||||||
|
|
@ -65,7 +64,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
|
||||||
enc.TxPool = c.TxPool
|
enc.TxPool = c.TxPool
|
||||||
enc.GPO = c.GPO
|
enc.GPO = c.GPO
|
||||||
enc.EnablePreimageRecording = c.EnablePreimageRecording
|
enc.EnablePreimageRecording = c.EnablePreimageRecording
|
||||||
enc.DocRoot = c.DocRoot
|
|
||||||
enc.RPCGasCap = c.RPCGasCap
|
enc.RPCGasCap = c.RPCGasCap
|
||||||
enc.RPCTxFeeCap = c.RPCTxFeeCap
|
enc.RPCTxFeeCap = c.RPCTxFeeCap
|
||||||
return &enc, nil
|
return &enc, nil
|
||||||
|
|
@ -94,7 +92,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
TxPool *txpool.Config
|
TxPool *txpool.Config
|
||||||
GPO *gasprice.Config
|
GPO *gasprice.Config
|
||||||
EnablePreimageRecording *bool
|
EnablePreimageRecording *bool
|
||||||
DocRoot *string `toml:"-"`
|
|
||||||
RPCGasCap *uint64
|
RPCGasCap *uint64
|
||||||
RPCTxFeeCap *float64
|
RPCTxFeeCap *float64
|
||||||
}
|
}
|
||||||
|
|
@ -162,9 +159,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
|
||||||
if dec.EnablePreimageRecording != nil {
|
if dec.EnablePreimageRecording != nil {
|
||||||
c.EnablePreimageRecording = *dec.EnablePreimageRecording
|
c.EnablePreimageRecording = *dec.EnablePreimageRecording
|
||||||
}
|
}
|
||||||
if dec.DocRoot != nil {
|
|
||||||
c.DocRoot = *dec.DocRoot
|
|
||||||
}
|
|
||||||
if dec.RPCGasCap != nil {
|
if dec.RPCGasCap != nil {
|
||||||
c.RPCGasCap = *dec.RPCGasCap
|
c.RPCGasCap = *dec.RPCGasCap
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue