diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-16 21:37:25 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2015-06-22 14:54:21 +0800 |
commit | 9ac1b4e59e3abc2742491f39f4f93bc459846098 (patch) | |
tree | 69738b6d6debcda7ca26aeb71cccaf2213b28b38 | |
parent | 5fdf72b1abba65bcaed116791b6b8b70edb17e49 (diff) | |
download | go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.gz go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.bz2 go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.lz go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.xz go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.tar.zst go-tangerine-9ac1b4e59e3abc2742491f39f4f93bc459846098.zip |
fixed rpc test failure in net_peerCount
-rw-r--r-- | rpc/api/net.go | 2 |
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) { |