diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-03 16:42:55 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-03 16:42:55 +0800 |
commit | 2010fea0888991e978e715477516bc374bb29f01 (patch) | |
tree | 1853e885d4b41bca0cb974a5c58b871406cbc2ad /ethpub/pub.go | |
parent | fb6ff61730ed92ada68c9c5a5b3a6f9976a78161 (diff) | |
download | dexon-2010fea0888991e978e715477516bc374bb29f01.tar dexon-2010fea0888991e978e715477516bc374bb29f01.tar.gz dexon-2010fea0888991e978e715477516bc374bb29f01.tar.bz2 dexon-2010fea0888991e978e715477516bc374bb29f01.tar.lz dexon-2010fea0888991e978e715477516bc374bb29f01.tar.xz dexon-2010fea0888991e978e715477516bc374bb29f01.tar.zst dexon-2010fea0888991e978e715477516bc374bb29f01.zip |
Added faux latency for peeroverview
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r-- | ethpub/pub.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go index 6d4c230ad..e00bd0dbe 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -56,6 +56,7 @@ func (lib *PEthereum) GetPeers() []PPeer { var peers []PPeer for peer := lib.manager.Peers().Front(); peer != nil; peer = peer.Next() { p := peer.Value.(ethchain.Peer) + // we only want connected peers if atomic.LoadInt32(p.Connected()) != 0 { peers = append(peers, *NewPPeer(p)) } |