diff options
author | Domino Valdano <dominoplural@gmail.com> | 2018-05-08 20:39:15 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-05-08 20:39:15 +0800 |
commit | fedae9501582cb64c850def557b1fc3742d892dc (patch) | |
tree | 2813326984d35372a4de7aaa73d54a859a72d8fa /eth/filters | |
parent | 864e80a48fd18fda89b80b11f9116c4e11cb835d (diff) | |
download | dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar.gz dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar.bz2 dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar.lz dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar.xz dexon-fedae9501582cb64c850def557b1fc3742d892dc.tar.zst dexon-fedae9501582cb64c850def557b1fc3742d892dc.zip |
eth/filters: derive FilterCriteria from ethereum.FilterQuery (#16629)
Diffstat (limited to 'eth/filters')
-rw-r--r-- | eth/filters/api.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/eth/filters/api.go b/eth/filters/api.go index ec403709c..1297b7478 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -268,14 +268,8 @@ func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc } // FilterCriteria represents a request to create a new filter. -// -// TODO(karalabe): Kill this in favor of ethereum.FilterQuery. -type FilterCriteria struct { - FromBlock *big.Int - ToBlock *big.Int - Addresses []common.Address - Topics [][]common.Hash -} +// Same as ethereum.FilterQuery but with UnmarshalJSON() method. +type FilterCriteria ethereum.FilterQuery // NewFilter creates a new filter and returns the filter id. It can be // used to retrieve logs when the state changes. This method cannot be |