Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Error: LevelUpArrayAdapter named 'blocks' index out of range #108

Closed
kumavis opened this issue Apr 29, 2018 · 0 comments
Closed

Error: LevelUpArrayAdapter named 'blocks' index out of range #108

kumavis opened this issue Apr 29, 2018 · 0 comments

Comments

@kumavis
Copy link
Contributor

kumavis commented Apr 29, 2018

Error: LevelUpArrayAdapter named 'blocks' index out of range: index 2; length: 2

gracefully handle RPC requests with block numbers higher than latest

@nicholasjpaterno nicholasjpaterno self-assigned this Nov 5, 2018
davidmurdoch pushed a commit that referenced this issue Jan 18, 2019
Resolves #108
This updates ganache to match geth and parity when block numbers exceed `latest`

The only conflict occurs in eth_getTransactionCount where I opted to match geth's behavior.
```
#parity
swirl eth_getTransactionCount 0x00a329c0648769a73afac7f9381e08fb43dbea72 0xfff
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Unknown block number"},"id":120}

#GETH
swirl eth_getTransactionCount 0x00a329c0648769a73afac7f9381e08fb43dbea72 0xfff
{"jsonrpc":"2.0","id":120,"result":null}
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants