hashgraph / hedera-json-rpc-relay

Implementation of Ethereum JSON-RPC APIs for Hedera
Apache License 2.0
48 stars 62 forks source link

Update `eth_getBlockByHash` and `eth_getBlockByNumber` to pass a timestamp range in mirror node queries #3040

Open victor-yanev opened 2 days ago

victor-yanev commented 2 days ago

In the eth_getBlockByHash and eth_getBlockByNumber methods, ensure the existing timestampRangeParams are used for subsequent API calls to getLogsWithParams and resolveEvmAddress. This change is necessary to handle the new 60-day limit on querying historical data in the mirror node.