diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:14:55 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:14:55 +0800 |
commit | 7b45f3377f3f8d911d7678530138a1249f523155 (patch) | |
tree | d8067121bcc20246ae860c45efb3b52932ac4397 | |
parent | 2ef2b9f2e011d482a50456da91ad4b7a4be57841 (diff) | |
download | dexon-7b45f3377f3f8d911d7678530138a1249f523155.tar.gz dexon-7b45f3377f3f8d911d7678530138a1249f523155.tar.zst dexon-7b45f3377f3f8d911d7678530138a1249f523155.zip |
inline MessagesChanged
-rw-r--r-- | rpc/api.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go index 1d4e737b5..8e3d3cc63 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -175,11 +175,6 @@ func (p *EthereumApi) GetStorageAt(args *GetStorageAtArgs, reply *interface{}) e return nil } -func (self *EthereumApi) MessagesChanged(id int, reply *interface{}) error { - *reply = self.xeth().MessagesChanged(id) - return nil -} - func (p *EthereumApi) GetBlockByHash(blockhash string, includetx bool) (*BlockRes, error) { block := p.xeth().EthBlockByHash(blockhash) br := NewBlockRes(block) @@ -552,7 +547,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error if err := json.Unmarshal(req.Params, &args); err != nil { return err } - return p.MessagesChanged(args.Id, reply) + *reply = p.xeth().MessagesChanged(args.Id) case "shh_getMessages": args := new(FilterIdArgs) if err := json.Unmarshal(req.Params, &args); err != nil { |