aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-31 18:57:56 +0800
committerobscuren <geffobscura@gmail.com>2014-01-31 18:57:56 +0800
commitda66eddfccf86eb5dc036e023ddc2e0278105706 (patch)
tree6eb3453a2297696a2a5adc1132f3974dcf93a2e1 /peer.go
parentdfa38b3f91d124f97350429c4664b62a5cb7dd08 (diff)
downloadgo-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar.gz
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar.bz2
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar.lz
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar.xz
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.tar.zst
go-tangerine-da66eddfccf86eb5dc036e023ddc2e0278105706.zip
Get peers returns now both in and outbound peers
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index bd75a0039..410e310f5 100644
--- a/peer.go
+++ b/peer.go
@@ -335,9 +335,9 @@ func (p *Peer) pushHandshake() error {
// Pushes the list of outbound peers to the client when requested
func (p *Peer) pushPeers() {
- outPeers := make([]interface{}, len(p.ethereum.OutboundPeers()))
+ outPeers := make([]interface{}, len(p.ethereum.InOutPeers()))
// Serialise each peer
- for i, peer := range p.ethereum.OutboundPeers() {
+ for i, peer := range p.ethereum.InOutPeers() {
outPeers[i] = peer.RlpData()
}