erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Find a better way to optimize getTransactionRecipes

Open JkLondon opened this issue 1 year ago • 0 comments

There was a discussion about eth_getTransactionReceipt in #12271 We have tx level granularity and now we are not storing receipts but generates them. However, there are issue with it: receipt needs CumulativeGasUsed field which obligates us to exec all block to calculate it. So there are 2 ways of optimization

  1. new route erigon_getTransactionReceipt without that field (would be really fast)
  2. store this field somewhere in db (probably we are storing it now, should figure it out) and then we would also be able to exec only one tx instead of block

JkLondon avatar Oct 16 '24 12:10 JkLondon