rpc, whisper, xeth: fix RPC message retrieval data race

This commit is contained in:
Péter Szilágyi
2015-04-20 14:56:38 +03:00
parent 5aa523e32b
commit 7948cc0029
6 changed files with 119 additions and 13 deletions

View File

@ -467,7 +467,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
*reply = api.xeth().Whisper().Messages(args.Id)
*reply = api.xeth().Messages(args.Id)
// case "eth_register":
// // Placeholder for actual type