aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 10:58:07 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 10:58:07 +0800
commit6c04c19eb4506efa5f6de47561025b3702619f79 (patch)
tree818a43ff93dc06c7a5c04355516b0d67d6ecd1c5 /rpc/args.go
parent12d87226a74d3c4095ea8e189c30ff31fcadf59f (diff)
downloadgo-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar.gz
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar.bz2
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar.lz
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar.xz
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.tar.zst
go-tangerine-6c04c19eb4506efa5f6de47561025b3702619f79.zip
Reorg filter logic to XEth
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go
index ab1c40585..bd6be5a0f 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -609,6 +609,16 @@ func (args *FilterStringArgs) UnmarshalJSON(b []byte) (err error) {
return nil
}
+func (args *FilterStringArgs) requirements() error {
+ switch args.Word {
+ case "latest", "pending":
+ break
+ default:
+ return NewValidationError("Word", "Must be `latest` or `pending`")
+ }
+ return nil
+}
+
type FilterIdArgs struct {
Id int
}