erigon
erigon copied to clipboard
Find a better way to optimize getTransactionRecipes
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
- new route erigon_getTransactionReceipt without that field (would be really fast)
- 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