MIP-16: JSON-RPC Query Methods

Thanks @typedarray ,

This is definitely amazing work. To better understand how the things work I want to ask the following:

  • What does “earliest” resolve to?
    If I am not mistaken earliest refers to the genesis block. So {order: "desc", fromBlock: "latest"} with no toBlock scans to block 0. But any range outside the availability window must return -32001. So on a node that doesn’t keep full history, that query always fails.

Did I get that right, or am I missing something? If it is an issue, maybe "earliest" could resolve to the start of the availability window instead. :folded_hands:

1 Like