-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor(node-builder): use datadir provided by the config #8592
Conversation
c005a3d
to
c745eaa
Compare
c745eaa
to
087b9d3
Compare
This reverts commit 087b9d3.
14fab24
to
554c024
Compare
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.
no semicolons good, let's see how long that lasts lol
@@ -183,7 +183,7 @@ impl<Ext: clap::Args + fmt::Debug> NodeCommand<Ext> { | |||
|
|||
let builder = NodeBuilder::new(node_config) | |||
.with_database(database) | |||
.with_launch_context(ctx.task_executor, data_dir); | |||
.with_launch_context(ctx.task_executor); |
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.
that's awesome
@@ -266,7 +266,7 @@ where | |||
Err(EthApiError::InvalidTransaction(RpcInvalidTransactionError::GasTooHigh)) | |||
if tx_request_gas_limit.is_some() || tx_request_gas_price.is_some() => | |||
{ | |||
return Err(self.map_out_of_gas_err(block_env_gas_limit, env, &mut db)); | |||
return Err(self.map_out_of_gas_err(block_env_gas_limit, env, &mut db)) |
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.
-.-
task_executor: TaskExecutor, | ||
) -> WithLaunchContext<NodeBuilder<Arc<TempDatabase<DatabaseEnv>>>> { | ||
let path = MaybePlatformPath::<DataDirPath>::from(tempdir_path()); | ||
self.config.datadir.datadir = path.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.
can we add setter for this on NodeConfig @shekhirin
Now that we have datadir arguments inside the node config with #7212, we can grab the datadir path directly from there.