From 12c6594c9b06dad4d320f14ffb39cd2cecbb6d47 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 9 Dec 2016 00:26:07 -0500 Subject: [PATCH] rpc: remove restriction on DialSeeds --- rpc/core/net.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rpc/core/net.go b/rpc/core/net.go index 3cf1fd9e..f5a1098f 100644 --- a/rpc/core/net.go +++ b/rpc/core/net.go @@ -1,8 +1,6 @@ package core import ( - "fmt" - ctypes "github.com/tendermint/tendermint/rpc/core/types" ) @@ -31,12 +29,8 @@ func NetInfo() (*ctypes.ResultNetInfo, error) { //----------------------------------------------------------------------------- -// Dial given list of seeds if we have no outbound peers +// Dial given list of seeds func DialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error) { - outbound, _, _ := p2pSwitch.NumPeers() - if outbound != 0 { - return nil, fmt.Errorf("Already have some outbound peers") - } // starts go routines to dial each seed after random delays p2pSwitch.DialSeeds(seeds) return &ctypes.ResultDialSeeds{}, nil