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/helper_test.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/helper_test.go')
-rw-r--r-- | eth/helper_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/helper_test.go b/eth/helper_test.go index f1dab9528..b66553135 100644 --- a/eth/helper_test.go +++ b/eth/helper_test.go @@ -66,11 +66,11 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func panic(err) } - pm, err := NewProtocolManager(gspec.Config, mode, DefaultConfig.NetworkId, 1000, evmux, &testTxPool{added: newtx}, engine, blockchain, db) + pm, err := NewProtocolManager(gspec.Config, mode, DefaultConfig.NetworkId, evmux, &testTxPool{added: newtx}, engine, blockchain, db) if err != nil { return nil, err } - pm.Start() + pm.Start(1000) return pm, nil } |