whisper: remove some unneeded testing complexity

This commit is contained in:
Péter Szilágyi
2015-04-15 12:50:10 +03:00
parent bcf41797ca
commit 46ea193a49
3 changed files with 5 additions and 32 deletions

View File

@ -5,13 +5,14 @@ import (
"time"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/discover"
)
func startTestCluster(n int) []*Whisper {
// Create the batch of simulated peers
nodes := make([]*p2p.Peer, n)
for i := 0; i < n; i++ {
nodes[i] = p2p.NewPeer(randomNodeID(), randomNodeName(), whisperCaps())
nodes[i] = p2p.NewPeer(discover.NodeID{}, "", nil)
}
whispers := make([]*Whisper, n)
for i := 0; i < n; i++ {