diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 02:19:52 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 02:19:52 +0800 |
commit | d670c861d7b7acb9983fdad065b2b67b0d598c45 (patch) | |
tree | 9c835f728fda1cfe00f79534c77913ec9cf5f925 /rpc/util.go | |
parent | 0685810ec604134bdf5b4ea555722909f72a7f57 (diff) | |
download | dexon-d670c861d7b7acb9983fdad065b2b67b0d598c45.tar.gz dexon-d670c861d7b7acb9983fdad065b2b67b0d598c45.tar.zst dexon-d670c861d7b7acb9983fdad065b2b67b0d598c45.zip |
Move Log to LogRes
Diffstat (limited to 'rpc/util.go')
-rw-r--r-- | rpc/util.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/rpc/util.go b/rpc/util.go index 0798ae1d2..9a1d11bf1 100644 --- a/rpc/util.go +++ b/rpc/util.go @@ -19,7 +19,6 @@ package rpc import ( "time" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/xeth" @@ -27,31 +26,6 @@ import ( var rpclogger = logger.NewLogger("RPC") -type Log struct { - Address string `json:"address"` - Topic []string `json:"topic"` - Data string `json:"data"` - Number uint64 `json:"number"` -} - -func toLogs(logs state.Logs) (ls []Log) { - ls = make([]Log, len(logs)) - - for i, log := range logs { - var l Log - l.Topic = make([]string, len(log.Topics())) - l.Address = common.ToHex(log.Address()) - l.Data = common.ToHex(log.Data()) - l.Number = log.Number() - for j, topic := range log.Topics() { - l.Topic[j] = common.ToHex(topic) - } - ls[i] = l - } - - return -} - type whisperFilter struct { messages []xeth.WhisperMessage timeout time.Time |