-
Notifications
You must be signed in to change notification settings - Fork 236
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: support to control memory usage for header map #2239
feat: support to control memory usage for header map #2239
Conversation
ckb-bin/src/subcommand/run.rs
Outdated
.header_map | ||
.as_ref() | ||
.cloned() | ||
.unwrap_or_else(Default::default), |
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.
.unwrap_or_else(Default::default), | |
.unwrap_or_default, |
shared/src/shared.rs
Outdated
@@ -200,6 +205,10 @@ impl Shared { | |||
pub fn store(&self) -> &ChainDB { | |||
&self.store | |||
} | |||
|
|||
pub fn header_map_config(&self) -> &HeaderMapConfig { |
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.
I don't think we need a fn to get header_map_config
here, the config should be passed to Shared::init
directly like other config objects
7aa5a2d
to
a7e8cbd
Compare
a7e8cbd
to
7e387dc
Compare
bors r=quake,keroro520 |
bors r=quake,keroro520 |
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
No description provided.