Output net_peerCount as hex

This commit is contained in:
Taylor Gerring 2015-03-04 08:41:13 -06:00
parent 93141f4b6d
commit 9b0f00baf3

View File

@ -344,7 +344,8 @@ func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *interface{}) err
} }
func (p *EthereumApi) GetPeerCount(reply *interface{}) error { func (p *EthereumApi) GetPeerCount(reply *interface{}) error {
*reply = p.xeth().PeerCount() c := p.xeth().PeerCount()
*reply = toHex(big.NewInt(int64(c)).Bytes())
return nil return nil
} }