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

Implement QueryablePayload::transaction for Payload #1761

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

lukaszrzasik
Copy link
Contributor

@lukaszrzasik lukaszrzasik commented Jul 22, 2024

Closes #<ISSUE_NUMBER>

This PR:

Implements QueryablePayload::transaction for Payload using Payload::transaction.
Until now Payload had only the generic QueryablePayload::transaction which internally uses transaction_with_proof. This is not optimal as proof calculation is cpu-intensive and it's a waste of cpu cycles in case we only care about the transaction and not the proof.
This change greatly improves the builder's performance.

Tested with demo-native it looks like this solves empty blocks issue.

This PR does not:

Key places to review:

@lukaszrzasik lukaszrzasik merged commit 8709a14 into main Jul 22, 2024
14 checks passed
@lukaszrzasik lukaszrzasik deleted the lr/txn-without-proof branch July 22, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants