mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +00:00
fixed rpc test failure in net_peerCount
This commit is contained in:
parent
5fdf72b1ab
commit
9ac1b4e59e
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ func (self *netApi) Version(req *shared.Request) (interface{}, error) {
|
||||||
|
|
||||||
// Number of connected peers
|
// Number of connected peers
|
||||||
func (self *netApi) PeerCount(req *shared.Request) (interface{}, error) {
|
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) {
|
func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue