aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-04 19:25:47 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-04 19:25:47 +0800
commit2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1 (patch)
tree9c0fa56fed6fef404b2abd76914f18c211f232a6
parent47298264663a563b34ebb8a1faf9fb8326fdef01 (diff)
downloadgo-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.tar.gz
go-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.tar.zst
go-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.zip
Allow "earliest" block height
-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":