diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 00:18:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 00:18:28 +0800 |
commit | b0ca1b67ce6e297fe02281d01a486225bbf385f8 (patch) | |
tree | 2a0e091700f33993e5851e79e2f3b0c4881a47fc /eth/gen_config.go | |
parent | 03d00361f5c91bedee27e7b5853523103750de3c (diff) | |
download | dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.gz dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.bz2 dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.lz dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.xz dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.zst dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.zip |
eth: use maxpeers from p2p layer instead of extra config
Diffstat (limited to 'eth/gen_config.go')
-rw-r--r-- | eth/gen_config.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/eth/gen_config.go b/eth/gen_config.go index 477479419..4a4cd7b9c 100644 --- a/eth/gen_config.go +++ b/eth/gen_config.go @@ -47,7 +47,6 @@ func (c Config) MarshalTOML() (interface{}, error) { enc.SyncMode = c.SyncMode enc.LightServ = c.LightServ enc.LightPeers = c.LightPeers - enc.MaxPeers = c.MaxPeers enc.SkipBcVersionCheck = c.SkipBcVersionCheck enc.DatabaseHandles = c.DatabaseHandles enc.DatabaseCache = c.DatabaseCache @@ -119,9 +118,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { if dec.LightPeers != nil { c.LightPeers = *dec.LightPeers } - if dec.MaxPeers != nil { - c.MaxPeers = *dec.MaxPeers - } if dec.SkipBcVersionCheck != nil { c.SkipBcVersionCheck = *dec.SkipBcVersionCheck } |