mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +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
|
# snapshot = true
|
||||||
# ethstats = ""
|
# ethstats = ""
|
||||||
|
|
||||||
# [requiredblocks]
|
# ["eth.requiredblocks"]
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
# maxpeers = 1
|
# maxpeers = 1
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ gcmode = "full"
|
||||||
snapshot = true
|
snapshot = true
|
||||||
ethstats = ""
|
ethstats = ""
|
||||||
|
|
||||||
|
["eth.requiredblocks"]
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 30
|
maxpeers = 30
|
||||||
maxpendpeers = 50
|
maxpendpeers = 50
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ type Config struct {
|
||||||
Identity string `hcl:"identity,optional" toml:"identity,optional"`
|
Identity string `hcl:"identity,optional" toml:"identity,optional"`
|
||||||
|
|
||||||
// RequiredBlocks is a list of required (block number, hash) pairs to accept
|
// 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 is the level of the logs to put out
|
||||||
LogLevel string `hcl:"log-level,optional" toml:"log-level,optional"`
|
LogLevel string `hcl:"log-level,optional" toml:"log-level,optional"`
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
Default: c.cliConfig.GcMode,
|
Default: c.cliConfig.GcMode,
|
||||||
})
|
})
|
||||||
f.MapStringFlag(&flagset.MapStringFlag{
|
f.MapStringFlag(&flagset.MapStringFlag{
|
||||||
Name: "requiredblocks",
|
Name: "eth.requiredblocks",
|
||||||
Usage: "Comma separated block number-to-hash mappings to enforce (<number>=<hash>)",
|
Usage: "Comma separated block number-to-hash mappings to enforce (<number>=<hash>)",
|
||||||
Value: &c.cliConfig.RequiredBlocks,
|
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"
|
datadir = "./data"
|
||||||
|
|
||||||
[requiredblocks]
|
["eth.requiredblocks"]
|
||||||
a = "b"
|
a = "b"
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue