updated tests, and removed requiredblocks from json and hcl

This commit is contained in:
Pratik Patil 2022-09-07 16:21:55 +04:00
parent d2eb2df62e
commit 7c6f0a67e6
4 changed files with 1 additions and 11 deletions

View file

@ -24,7 +24,7 @@ func TestFlags(t *testing.T) {
"--dev.period", "2",
"--datadir", "./data",
"--maxpeers", "30",
"--requiredblocks", "a=b",
"--eth.requiredblocks", "a=b",
"--http.api", "eth,web3,bor",
}
err := c.extractFlags(args)

View file

@ -108,9 +108,6 @@ func TestConfigLoadFile(t *testing.T) {
assert.Equal(t, config, &Config{
DataDir: "./data",
RequiredBlocks: map[string]string{
"a": "b",
},
P2P: &P2PConfig{
MaxPeers: 30,
},

View file

@ -1,9 +1,5 @@
datadir = "./data"
requiredblocks = {
a = "b"
}
p2p {
maxpeers = 30
}

View file

@ -1,8 +1,5 @@
{
"datadir": "./data",
"requiredblocks": {
"a": "b"
},
"p2p": {
"maxpeers": 30
},