hedera-json-rpc-relay icon indicating copy to clipboard operation
hedera-json-rpc-relay copied to clipboard

feat: calculate actual `receiptsRoot` when possible

Open natanasow opened this issue 6 months ago • 4 comments

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.)

natanasow avatar Aug 07 '24 11:08 natanasow