hedera-json-rpc-relay
hedera-json-rpc-relay copied to clipboard
feat: calculate actual `receiptsRoot` when possible
Description:
Currently, when we return block information, we don't include actual receiptsRoot, this is because Hedera is not using Merkle Patricia trie. However, this can be easily calculated during the processing of the request. Returning real receiptsRoot
can help tools and developers.
Solution:
Taking a look at how calculating receiptsRoot is done in the javascript execution client for Ethereum can help us do it here as well. More information about the implementation can be found here.
Related issue(s):
Fixes #2667
Notes for reviewer:
Checklist
- [ ] Documented (Code comments, README, etc.)
- [ ] Tested (unit, integration, etc.)