seeds fix

This commit is contained in:
rigelrozanski
2017-03-04 21:43:03 -05:00
committed by Ethan Buchman
parent 8352ec4e5d
commit f5c4fdc82a
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ func NetInfo() (*ctypes.ResultNetInfo, error) {
// Dial given list of seeds
func UnsafeDialSeeds(seeds []string) (*ctypes.ResultDialSeeds, error) {
// starts go routines to dial each seed after random delays
p2pSwitch.DialSeeds(seeds)
return &ctypes.ResultDialSeeds{}, nil
err := p2pSwitch.DialSeeds(seeds)
return &ctypes.ResultDialSeeds{}, err
}
//-----------------------------------------------------------------------------
+1 -1
View File
@@ -24,7 +24,7 @@ type P2P interface {
NumPeers() (outbound, inbound, dialig int)
NodeInfo() *p2p.NodeInfo
IsListening() bool
DialSeeds([]string)
DialSeeds([]string) error
}
//----------------------------------------------