Output net_peerCount as hex

pull/444/head
Taylor Gerring 10 years ago
parent 93141f4b6d
commit 9b0f00baf3
  1. 3
      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
}

Loading…
Cancel
Save