mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
Allow "earliest" block height
This commit is contained in:
parent
4729826466
commit
2b9b9e7704
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue