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

Receipts: Add option to not recover sender and write flags #7680

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

asdacap
Copy link
Contributor

@asdacap asdacap commented Oct 29, 2024

  • On Get() add option to not recover sender
    • This improve era export throughput by 4x.
  • On Insert() add option to specify write flags.
    • On era export wal writes can reach 150 MBps.

Types of changes

What types of changes does your code introduce?

  • New feature (a non-breaking change that adds functionality)
  • Optimization

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@asdacap asdacap changed the title Add option to not recover sender Receipts: Add option to not recover sender and write flags Oct 30, 2024
@asdacap asdacap marked this pull request as ready for review October 30, 2024 01:24
@asdacap asdacap mentioned this pull request Oct 30, 2024
5 tasks
@@ -9,7 +9,7 @@ namespace Nethermind.Blockchain.Receipts
public interface IReceiptFinder
{
Hash256? FindBlockHash(Hash256 txHash);
TxReceipt[] Get(Block block, bool recover = true);
TxReceipt[] Get(Block block, bool recover = true, bool recoverSender = true);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe would be better to collapse recover and recoverSender into an enum?

public enum ReceiptRecoveryOptions { None, TransactionAndBlock, TransactionAndBlockWithSender }

Hard to name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd say, don't recover sender at all in receipt finder. Its a weird behaviour.

@asdacap asdacap merged commit efe8dba into master Oct 30, 2024
75 checks passed
@asdacap asdacap deleted the feature/allow-skipping-sender-recovery branch October 30, 2024 13:54
@kamilchodola kamilchodola restored the feature/allow-skipping-sender-recovery branch November 4, 2024 13:36
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