onflow / flow-evm-gateway

FlowEVM Gateway implements an Ethereum-equivalent JSON-RPC API for EVM clients to use
https://developers.flow.com/evm/about
Apache License 2.0
11 stars 10 forks source link

Validate and protect against register API index delays #585

Closed sideninja closed 1 month ago

sideninja commented 1 month ago

There could be a case where the transaction re-execution request is made or a call is made and using the remote register APIs we fail to execute because the AN did not yet index that register. We should make sure such cases can't happen. Right now the EVM GW node is configured to allow querying all the sealed blocks heights. We must make sure that once the block height is sealed the registers will be indexed. If that is not the case we should guard and differentiate between register not existing and register not being indexed yet.

j1010001 commented 1 month ago

no londer needed, moving to dry-run solution (https://github.com/onflow/flow-go/issues/6539)