Allow "earliest" block height
This commit is contained in:
parent
4729826466
commit
2b9b9e7704
@ -36,6 +36,8 @@ func blockHeight(raw interface{}, number *int64) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch str {
|
switch str {
|
||||||
|
case "earliest":
|
||||||
|
*number = 0
|
||||||
case "latest":
|
case "latest":
|
||||||
*number = -1
|
*number = -1
|
||||||
case "pending":
|
case "pending":
|
||||||
|
Loading…
Reference in New Issue
Block a user