aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-06 00:18:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-06 00:18:28 +0800
commitb0ca1b67ce6e297fe02281d01a486225bbf385f8 (patch)
tree2a0e091700f33993e5851e79e2f3b0c4881a47fc /eth/handler_test.go
parent03d00361f5c91bedee27e7b5853523103750de3c (diff)
downloaddexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.gz
dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.zst
dexon-b0ca1b67ce6e297fe02281d01a486225bbf385f8.zip
eth: use maxpeers from p2p layer instead of extra config
Diffstat (limited to 'eth/handler_test.go')
-rw-r--r--eth/handler_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/handler_test.go b/eth/handler_test.go
index aba277444..6752cd2a8 100644
--- a/eth/handler_test.go
+++ b/eth/handler_test.go
@@ -476,11 +476,11 @@ func testDAOChallenge(t *testing.T, localForked, remoteForked bool, timeout bool
genesis = gspec.MustCommit(db)
blockchain, _ = core.NewBlockChain(db, config, pow, vm.Config{})
)
- pm, err := NewProtocolManager(config, downloader.FullSync, DefaultConfig.NetworkId, 1000, evmux, new(testTxPool), pow, blockchain, db)
+ pm, err := NewProtocolManager(config, downloader.FullSync, DefaultConfig.NetworkId, evmux, new(testTxPool), pow, blockchain, db)
if err != nil {
t.Fatalf("failed to start test protocol manager: %v", err)
}
- pm.Start()
+ pm.Start(1000)
defer pm.Stop()
// Connect a new peer and check that we receive the DAO challenge