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

feat(core): add feature "test-utils" #452

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keroro520
Copy link
Contributor

No description provided.

@keroro520 keroro520 requested a review from smtmfft January 21, 2025 12:26

let batch_limit = 1000;
while !accounts.is_empty() {
let batch_limit = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

why change batch size to 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mistake. It should be charged back

Ok(Self {
#[cfg(any(test, feature = "test-utils"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

it’s better to avoid excessive conditional compilation test code in the main program logic. I suggest making another RpcBlockDataProvider trait impl for test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Creating another RPC provider might be better. Thanks will update soon

@smtmfft smtmfft requested a review from johntaiko January 22, 2025 01:26
@keroro520 keroro520 marked this pull request as draft January 22, 2025 03:03
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