Open quickchase opened 1 month ago
@quickchase optimism_outputAtBlock
uses eth_getProof
RPC. But erigon's getProof
has a limitation, and it takes time to get results for past blocks.
https://github.com/testinprod-io/op-erigon/blob/op-erigon/cmd/utils/flags.go#L543-L551
// Careful! Because we must rewind the hash state // and re-compute the state trie, the further back in time the request, the more // computationally intensive the operation becomes. // The current default has been chosen arbitrarily as 'useful' without likely being overly computationally intense.
So it's not recommened to use optimism_outputAtBlock
for a past block with op-erigon now.
When querying op-node, attached to op-erigon, we get an error:
Query:
Response:
However, this works fine with an archive op-geth node.
Is there anything we can adjust or do to make this work with op-erigon?
Expected Response (taken from op-geth):