aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/message.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-30 03:41:10 +0800
committerobscuren <geffobscura@gmail.com>2015-01-30 03:41:10 +0800
commitbd992e7baf5da01e97fe4e0c85184716daafa7e5 (patch)
treed159e9d44c6a9b90497d01ba8663865d3f7c8b98 /rpc/message.go
parent0031f388ac1f6f4a23c5c75e5eeb4a007f0b2f31 (diff)
parent447bad9dbd9ef033332b1166f7ac95aab5b82e43 (diff)
downloadgo-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar.gz
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar.bz2
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar.lz
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar.xz
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.tar.zst
go-tangerine-bd992e7baf5da01e97fe4e0c85184716daafa7e5.zip
Merge branch 'qt5.4' of github.com-obscure:ethereum/go-ethereum into qt5.4
Conflicts: rpc/message.go
Diffstat (limited to 'rpc/message.go')
-rw-r--r--rpc/message.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/rpc/message.go b/rpc/message.go
index a76eaece4..5045adb8f 100644
--- a/rpc/message.go
+++ b/rpc/message.go
@@ -21,8 +21,6 @@ import (
"encoding/json"
"errors"
"fmt"
-
- "github.com/ethereum/go-ethereum/state"
)
const (
@@ -232,29 +230,6 @@ func (req *RpcRequest) ToFilterChangedArgs() (int, error) {
return id, nil
}
-type Log struct {
- Address string `json:"address"`
- Topics []string `json:"topics"`
- Data string `json:"data"`
-}
-
-func toLogs(logs state.Logs) (ls []Log) {
- ls = make([]Log, len(logs))
-
- for i, log := range logs {
- var l Log
- l.Topics = make([]string, len(log.Topics()))
- l.Address = toHex(log.Address())
- l.Data = toHex(log.Data())
- for j, topic := range log.Topics() {
- l.Topics[j] = toHex(topic)
- }
- ls[i] = l
- }
-
- return
-}
-
func (req *RpcRequest) ToDbPutArgs() (*DbArgs, error) {
if len(req.Params) < 3 {
return nil, NewErrorResponse(ErrorArguments)