forked from cerc-io/plugeth
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 {
|
||||
case "earliest":
|
||||
*number = 0
|
||||
case "latest":
|
||||
*number = -1
|
||||
case "pending":
|
||||
|
Loading…
Reference in New Issue
Block a user