aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 11:48:03 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 11:48:03 +0800
commit03dc760ca07682a61ed547c11a1c650a324a1b14 (patch)
tree645603633e069f5f701db6f6bac8f9c9a971c731 /rpc/args.go
parentef9d825cfaa274a4063bf7dcbf19c033e29b90aa (diff)
downloadgo-tangerine-03dc760ca07682a61ed547c11a1c650a324a1b14.tar.gz
go-tangerine-03dc760ca07682a61ed547c11a1c650a324a1b14.tar.zst
go-tangerine-03dc760ca07682a61ed547c11a1c650a324a1b14.zip
Tidy
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 3284a232a..f56051242 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -5,7 +5,6 @@ import (
"encoding/json"
"math/big"
- "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/ethutil"
)
@@ -346,32 +345,6 @@ func (args *FilterOptions) UnmarshalJSON(b []byte) (err error) {
return nil
}
-func toFilterOptions(options *FilterOptions) core.FilterOptions {
- var opts core.FilterOptions
-
- // Convert optional address slice/string to byte slice
- if str, ok := options.Address.(string); ok {
- opts.Address = [][]byte{fromHex(str)}
- } else if slice, ok := options.Address.([]interface{}); ok {
- bslice := make([][]byte, len(slice))
- for i, addr := range slice {
- if saddr, ok := addr.(string); ok {
- bslice[i] = fromHex(saddr)
- }
- }
- opts.Address = bslice
- }
-
- opts.Earliest = options.Earliest
- opts.Latest = options.Latest
- opts.Topics = make([][]byte, len(options.Topic))
- for i, topic := range options.Topic {
- opts.Topics[i] = fromHex(topic)
- }
-
- return opts
-}
-
// type FilterChangedArgs struct {
// n int
// }
@@ -530,7 +503,6 @@ type WhisperFilterArgs struct {
To string
From string
Topics []string
- Fn func()
}
func (args *WhisperFilterArgs) UnmarshalJSON(b []byte) (err error) {