changed 'requiredblocks' flag back to 'eth.requiredblocks'

This commit is contained in:
Pratik Patil 2022-09-07 13:35:22 +04:00
parent 7bb7bacd50
commit d2eb2df62e
5 changed files with 6 additions and 4 deletions

View file

@ -12,7 +12,7 @@ syncmode = "full"
# snapshot = true
# ethstats = ""
# [requiredblocks]
# ["eth.requiredblocks"]
[p2p]
# maxpeers = 1

View file

@ -19,6 +19,8 @@ gcmode = "full"
snapshot = true
ethstats = ""
["eth.requiredblocks"]
[p2p]
maxpeers = 30
maxpendpeers = 50

View file

@ -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"`

View file

@ -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,
})

View file

@ -1,6 +1,6 @@
datadir = "./data"
[requiredblocks]
["eth.requiredblocks"]
a = "b"
[p2p]