diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-04 19:25:47 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-04-04 19:25:47 +0800 |
commit | 2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1 (patch) | |
tree | 9c0fa56fed6fef404b2abd76914f18c211f232a6 | |
parent | 47298264663a563b34ebb8a1faf9fb8326fdef01 (diff) | |
download | go-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.tar.gz go-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.tar.zst go-tangerine-2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1.zip |
Allow "earliest" block height
-rw-r--r-- | rpc/args.go | 2 |
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": |