You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} else if number == rpc.PendingBlockNumber || number == rpc.EarliestBlockNumber {
return 0, common.Hash{}, fmt.Errorf("pending and earliest blocks are not supported")
to
} else if number == rpc.EarliestBlockNumber {
blockNumber = 0
} else if number == rpc.PendingBlockNumber {
return 0, common.Hash{}, fmt.Errorf("pending and earliest blocks are not supported")
It works, but I don't know if that's the right thing to do, so I didn't make a PR. I'm curious why this line returns an error.
The text was updated successfully, but these errors were encountered:
Yes, it is ok to fix it as you suggest. I was not sure what to do with that EarliestBlock thing, so I just bundled it up with "not supported". When we implement snapshotting, we will need to write it in here
This curl command:
returns this:
Against both Parity and Geth.
Against TurboGeth it returns:
If I change this line from this:
to
It works, but I don't know if that's the right thing to do, so I didn't make a PR. I'm curious why this line returns an error.
The text was updated successfully, but these errors were encountered: