Closed m-Peter closed 3 months ago
The change enhances the GetBlockByNumber
method in the BlockChainAPI
class to ensure it correctly returns the genesis block when the requested block number is rpc.EarliestBlockNumber
and no block is found. This modification improves the API's responsiveness and robustness, specifically addressing issues with the earliest
flag.
Files | Change Summary |
---|---|
api/api.go |
Modified GetBlockByNumber to return GenesisBlock when the requested block number is earliest and no block is found. |
Objective | Addressed | Explanation |
---|---|---|
eth_getBlockByNumber() supports earliest flag (#371) | ✅ |
🐇 "In the blockchain's vast, we now see,
When blocks go missing, just call on me!
The genesis awaits, with stories to tell,
A fallback so sweet, all will be well!
So hop with delight, let data flow free,
With earliest support, as bright as can be!" 🥕
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes: https://github.com/onflow/flow-evm-gateway/issues/371
Description
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit