forked from cerc-io/plugeth
Revert to hex response
This commit is contained in:
parent
0d8d51084f
commit
a6599404e4
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,7 +370,7 @@ func (p *EthereumApi) GetIsMining(reply *interface{}) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *EthereumApi) BlockNumber(reply *interface{}) error {
|
func (p *EthereumApi) BlockNumber(reply *interface{}) error {
|
||||||
*reply = p.xeth().Backend().ChainManager().CurrentBlock().Number()
|
*reply = toHex(p.xeth().Backend().ChainManager().CurrentBlock().Number().Bytes())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -608,8 +609,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return p.NewFilterString(args, reply)
|
return p.NewFilterString(args, reply)
|
||||||
case "eth_newBlockFilter":
|
|
||||||
return errNotImplemented
|
|
||||||
case "eth_uninstallFilter":
|
case "eth_uninstallFilter":
|
||||||
args, err := req.ToUninstallFilterArgs()
|
args, err := req.ToUninstallFilterArgs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user