aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-07 21:04:29 +0800
committerobscuren <geffobscura@gmail.com>2015-04-07 21:04:29 +0800
commit3063aad7dbe5b20d8af51a907b1d673f36331354 (patch)
treec2755b55e9a7e68c4fcd900b4d418fefbd7662ce /rpc/args.go
parent50aa1f178c71a4ff6c59888fcb9e78ff8a0abacd (diff)
parentd0c3f127eee44274f72377085535d4c25e8b0f55 (diff)
downloaddexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar.gz
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar.bz2
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar.lz
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar.xz
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.tar.zst
dexon-3063aad7dbe5b20d8af51a907b1d673f36331354.zip
merge conflict
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/args.go b/rpc/args.go
index cebabf4ba..5b1c271cc 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -36,6 +36,8 @@ func blockHeight(raw interface{}, number *int64) error {
}
switch str {
+ case "earliest":
+ *number = 0
case "latest":
*number = -1
case "pending":