mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
seeds fix
This commit is contained in:
committed by
Ethan Buchman
parent
8352ec4e5d
commit
f5c4fdc82a
+2
-2
@@ -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
@@ -24,7 +24,7 @@ type P2P interface {
|
||||
NumPeers() (outbound, inbound, dialig int)
|
||||
NodeInfo() *p2p.NodeInfo
|
||||
IsListening() bool
|
||||
DialSeeds([]string)
|
||||
DialSeeds([]string) error
|
||||
}
|
||||
|
||||
//----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user