Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpcdaemon: generate transaction receipts on-the-fly #2375

Merged
merged 13 commits into from
Oct 2, 2024
Merged

Conversation

lupin012
Copy link
Contributor

@lupin012 lupin012 commented Sep 20, 2024

Add generation on-the-fly for transaction receipts if not present on the data storage.

EVMExecutor::call_with_receipts is currently copy-paste of EVMExecutor::call, waiting for the work in #2364 to be merged, then a refactoring will be needed

@lupin012 lupin012 added the enhancement New feature or improvement label Sep 20, 2024
@lupin012 lupin012 marked this pull request as ready for review September 21, 2024 11:59
@lupin012 lupin012 added the erigon3 Erigon3 feature label Sep 26, 2024
@canepat canepat changed the title rpcdaemon: handle generate_receipt rpcdaemon: generate transaction receipts on-the-fly Sep 30, 2024
executor.reset();
}
return rpc_receipts;
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be able to parallelise the generation of the receipts by scheduling the execution of each transactions as a separate async_task, as opposed to having just one. This will require setting up dedicated history State instances for each txn_num.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK in next PR

@canepat canepat marked this pull request as draft October 1, 2024 08:25
@canepat canepat marked this pull request as ready for review October 1, 2024 11:03
@canepat canepat marked this pull request as draft October 1, 2024 13:04
@lupin012 lupin012 marked this pull request as ready for review October 1, 2024 20:36
@canepat canepat merged commit ddeacfb into master Oct 2, 2024
6 checks passed
@canepat canepat deleted the generate_receipt branch October 2, 2024 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement erigon3 Erigon3 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants