From 2b9b9e77040bd35e6c5eb1d1eaeeef7abb1d93c1 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 4 Apr 2015 13:25:47 +0200 Subject: Allow "earliest" block height --- rpc/args.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpc') 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": -- cgit