mirror of https://github.com/status-im/op-geth.git
Rename db_put db_get
This commit is contained in:
parent
d3f96dc720
commit
e3b64d70c2
|
@ -723,18 +723,20 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
|
||||||
return p.AllLogs(args, reply)
|
return p.AllLogs(args, reply)
|
||||||
case "eth_getWork", "eth_submitWork":
|
case "eth_getWork", "eth_submitWork":
|
||||||
return NewNotImplementedError(req.Method)
|
return NewNotImplementedError(req.Method)
|
||||||
case "db_put":
|
case "db_putString":
|
||||||
args := new(DbArgs)
|
args := new(DbArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return p.DbPut(args, reply)
|
return p.DbPut(args, reply)
|
||||||
case "db_get":
|
case "db_getString":
|
||||||
args := new(DbArgs)
|
args := new(DbArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return p.DbGet(args, reply)
|
return p.DbGet(args, reply)
|
||||||
|
case "db_putHex", "db_getHex":
|
||||||
|
return NewNotImplementedError(req.Method)
|
||||||
case "shh_post":
|
case "shh_post":
|
||||||
args := new(WhisperMessageArgs)
|
args := new(WhisperMessageArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue