-
Notifications
You must be signed in to change notification settings - Fork 335
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
Conversation
max_past_logs, | ||
network: network.clone(), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@@ -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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
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?