mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
changed 'requiredblocks' flag back to 'eth.requiredblocks'
This commit is contained in:
parent
7bb7bacd50
commit
d2eb2df62e
5 changed files with 6 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ syncmode = "full"
|
|||
# snapshot = true
|
||||
# ethstats = ""
|
||||
|
||||
# [requiredblocks]
|
||||
# ["eth.requiredblocks"]
|
||||
|
||||
[p2p]
|
||||
# maxpeers = 1
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ gcmode = "full"
|
|||
snapshot = true
|
||||
ethstats = ""
|
||||
|
||||
["eth.requiredblocks"]
|
||||
|
||||
[p2p]
|
||||
maxpeers = 30
|
||||
maxpendpeers = 50
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ type Config struct {
|
|||
Identity string `hcl:"identity,optional" toml:"identity,optional"`
|
||||
|
||||
// RequiredBlocks is a list of required (block number, hash) pairs to accept
|
||||
RequiredBlocks map[string]string `hcl:"requiredblocks,optional" toml:"requiredblocks,optional"`
|
||||
RequiredBlocks map[string]string `hcl:"eth.requiredblocks,optional" toml:"eth.requiredblocks,optional"`
|
||||
|
||||
// LogLevel is the level of the logs to put out
|
||||
LogLevel string `hcl:"log-level,optional" toml:"log-level,optional"`
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
|||
Default: c.cliConfig.GcMode,
|
||||
})
|
||||
f.MapStringFlag(&flagset.MapStringFlag{
|
||||
Name: "requiredblocks",
|
||||
Name: "eth.requiredblocks",
|
||||
Usage: "Comma separated block number-to-hash mappings to enforce (<number>=<hash>)",
|
||||
Value: &c.cliConfig.RequiredBlocks,
|
||||
})
|
||||
|
|
|
|||
2
internal/cli/server/testdata/test.toml
vendored
2
internal/cli/server/testdata/test.toml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
datadir = "./data"
|
||||
|
||||
[requiredblocks]
|
||||
["eth.requiredblocks"]
|
||||
a = "b"
|
||||
|
||||
[p2p]
|
||||
|
|
|
|||
Loading…
Reference in a new issue