aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-16 21:37:25 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 14:54:21 +0800
commit9ac1b4e59e3abc2742491f39f4f93bc459846098 (patch)
tree69738b6d6debcda7ca26aeb71cccaf2213b28b38 /rpc
parent5fdf72b1abba65bcaed116791b6b8b70edb17e49 (diff)
downloaddexon-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.gz
dexon-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.zst
dexon-9ac1b4e59e3abc2742491f39f4f93bc459846098.zip
fixed rpc test failure in net_peerCount
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/net.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api/net.go b/rpc/api/net.go
index d6888ee4a..247c23827 100644
--- a/rpc/api/net.go
+++ b/rpc/api/net.go
@@ -77,7 +77,7 @@ func (self *netApi) Version(req *shared.Request) (interface{}, error) {
// Number of connected peers
func (self *netApi) PeerCount(req *shared.Request) (interface{}, error) {
- return self.xeth.PeerCount(), nil
+ return newHexNum(self.xeth.PeerCount()), nil
}
func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {