From 9b0f00baf35b7eaa323f2679a07da198369b249e Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Wed, 4 Mar 2015 08:41:13 -0600 Subject: Output net_peerCount as hex --- rpc/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpc') 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 } -- cgit