aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpc/api.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index d1158afe9..d82432d79 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -344,7 +344,8 @@ func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *interface{}) err
}
func (p *EthereumApi) GetPeerCount(reply *interface{}) error {
- *reply = p.xeth().PeerCount()
+ c := p.xeth().PeerCount()
+ *reply = toHex(big.NewInt(int64(c)).Bytes())
return nil
}