Output net_peerCount as hex
This commit is contained in:
parent
93141f4b6d
commit
9b0f00baf3
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user