diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-12 02:22:38 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-12 02:22:38 +0800 |
commit | 1fc3524e40ced2e780f6b90fa4ca7725c839976f (patch) | |
tree | 1d3508d967c9269fd89b0fa2d45313e4c821c170 /rpc/message.go | |
parent | df49c609a0fd055a4f0dac89db6863ad5532228f (diff) | |
parent | ebc506dae8a15e5dcce4e4369e21d04e3b8f9aa4 (diff) | |
download | dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar.gz dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar.bz2 dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar.lz dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar.xz dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.tar.zst dexon-1fc3524e40ced2e780f6b90fa4ca7725c839976f.zip |
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Diffstat (limited to 'rpc/message.go')
-rw-r--r-- | rpc/message.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/message.go b/rpc/message.go index 78dc6e2ff..7983e003d 100644 --- a/rpc/message.go +++ b/rpc/message.go @@ -34,20 +34,20 @@ const ( ) type RpcRequest struct { + ID interface{} `json:"id"` JsonRpc string `json:"jsonrpc"` - ID int `json:"id"` Method string `json:"method"` Params []json.RawMessage `json:"params"` } type RpcSuccessResponse struct { - ID int `json:"id"` + ID interface{} `json:"id"` JsonRpc string `json:"jsonrpc"` Result interface{} `json:"result"` } type RpcErrorResponse struct { - ID *int `json:"id"` + ID interface{} `json:"id"` JsonRpc string `json:"jsonrpc"` Error *RpcErrorObject `json:"error"` } |