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

add cli option --eth-log-block-cache #902

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

librelois
Copy link
Collaborator

What does it do?

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added the B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes label Oct 14, 2021
node/cli/src/cli.rs Show resolved Hide resolved
max_past_logs,
network: network.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like your editor rearranged these in alphabetical order, which might cause some merge headaches. this seems fine to me as long as we're intentional and consistent about it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not my editor, it's intentional.

@librelois librelois merged commit 379fbb0 into master Oct 14, 2021
@librelois librelois deleted the elois-cli-eth-block-data-cache branch October 14, 2021 14:29
@@ -169,6 +169,10 @@ pub struct RunCmd {
#[structopt(long, default_value = "300")]
pub ethapi_trace_cache_duration: u64,

/// Size of the LRU cache for block data and their transaction statuses.
#[structopt(long, default_value = "3000")]
pub eth_log_block_cache: usize,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this one usize and the others are u32 or u64? I don't see any problems, just curious about this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the LruCache is waiting for a usize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants