mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
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 {
|
||||
*reply = p.xeth().PeerCount()
|
||||
c := p.xeth().PeerCount()
|
||||
*reply = toHex(big.NewInt(int64(c)).Bytes())
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user