erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Serve receipts by P2P

Open AskAlexSharov opened this issue 1 year ago • 2 comments

Code is here: in getReceipts66 need uncomment things and inside AnswerGetReceiptsQuery implement re-execution of requested blocks - to produce Receipts.

Additional: need use only 1 gorotine for all such P2P requests. (probably by *semaphore.Weighted)

Additional: add LRU of results.

Example of block re-exec see in: getLogsV3. (there is use of intraBlockExec). See also Receipts LRU in RPCDaemon (as an example. don't re-use it).

AskAlexSharov avatar May 14 '24 03:05 AskAlexSharov

My 2 cents: this should be priority low and probably be not a "requirement" for E3 alpha

Giulio2002 avatar May 17 '24 21:05 Giulio2002

agree. created beta milestone. moved issue there.

AskAlexSharov avatar May 18 '24 03:05 AskAlexSharov