aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-03-29 03:42:45 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-03-29 03:42:45 +0800
commitb9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4 (patch)
tree388b087271aeca6a8e163f2adf221dbee783ea0d /core
parent696ff43db3e6d5261aba92df82f7602d5d82e964 (diff)
parent43d521e90e9516429dd0499ff88bf3f37ec78c48 (diff)
downloaddexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.gz
dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.tar.zst
dexon-b9ca5eef585a6bc5f3233cfcc7c0a641a046e7c4.zip
Merge pull request #579 from tgerring/rpcargs
RPC Args
Diffstat (limited to 'core')
-rw-r--r--core/filter.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/core/filter.go b/core/filter.go
index ba5d5e14e..1dca5501d 100644
--- a/core/filter.go
+++ b/core/filter.go
@@ -12,17 +12,6 @@ type AccountChange struct {
Address, StateAddress []byte
}
-type FilterOptions struct {
- Earliest int64
- Latest int64
-
- Address []common.Address
- Topics [][]common.Hash
-
- Skip int
- Max int
-}
-
// Filtering interface
type Filter struct {
eth Backend
@@ -44,18 +33,6 @@ func NewFilter(eth Backend) *Filter {
return &Filter{eth: eth}
}
-// SetOptions copies the filter options to the filter it self. The reason for this "silly" copy
-// is simply because named arguments in this case is extremely nice and readable.
-func (self *Filter) SetOptions(options *FilterOptions) {
- self.earliest = options.Earliest
- self.latest = options.Latest
- self.skip = options.Skip
- self.max = options.Max
- self.address = options.Address
- self.topics = options.Topics
-
-}
-
// Set the earliest and latest block for filtering.
// -1 = latest block (i.e., the current block)
// hash = particular hash from-to