Allow "earliest" block height

This commit is contained in:
Taylor Gerring 2015-04-04 13:25:47 +02:00
parent 4729826466
commit 2b9b9e7704

View File

@ -36,6 +36,8 @@ func blockHeight(raw interface{}, number *int64) error {
}
switch str {
case "earliest":
*number = 0
case "latest":
*number = -1
case "pending":