diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-06 23:51:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-07 20:44:32 +0800 |
commit | 7e160a677d1590f97708a0d297f978a99977d398 (patch) | |
tree | 9cd71bfad14c06c381e3518f6fb11464225271ab /rpc/responses.go | |
parent | 97c37356fdcfac8b704c3d75b33e322a737c4e55 (diff) | |
download | go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar.gz go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar.bz2 go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar.lz go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar.xz go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.tar.zst go-tangerine-7e160a677d1590f97708a0d297f978a99977d398.zip |
xeth, core, event/filter, rpc: new block and transaction filters
Diffstat (limited to 'rpc/responses.go')
-rw-r--r-- | rpc/responses.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rpc/responses.go b/rpc/responses.go index 884b7e69b..9fdf60c02 100644 --- a/rpc/responses.go +++ b/rpc/responses.go @@ -3,6 +3,7 @@ package rpc import ( "encoding/json" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" ) @@ -303,3 +304,13 @@ func NewLogsRes(logs state.Logs) (ls []LogRes) { return } + +func NewHashesRes(hs []common.Hash) []string { + hashes := make([]string, len(hs)) + + for i, hash := range hs { + hashes[i] = hash.Hex() + } + + return hashes +} |