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

Skip prewarming tx if main processing has caught up #7143

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

benaadams
Copy link
Member

Changes

  • Skip transactions for prewarming where main processing has processed or is being processed

Types of changes

What types of changes does your code introduce?

  • Optimization

Testing

Requires testing

  • No

@@ -113,6 +113,8 @@ public Transaction[] Transactions

[JsonIgnore]
public ArrayPoolList<AddressAsKey>? AccountChanges { get; set; }
[JsonIgnore]
internal volatile int TransactionProcessed;
Copy link
Member

Choose a reason for hiding this comment

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

Can we pass it in different way? Block should be more of domain object.
Similar problem is with AccountChanges.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is a bit messy because of where the compents surface where currently the only shared comms is the block.

Will think about if it can be improved though

Copy link
Member

Choose a reason for hiding this comment

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

lets introduce some sharable block processing context

@benaadams benaadams merged commit 89d9ce4 into master Jun 6, 2024
68 checks passed
@benaadams benaadams deleted the prewarm-catchup branch June 6, 2024 11:43
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