-
Notifications
You must be signed in to change notification settings - Fork 39
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
Improvements on standalone node execution (BFT-399) #55
Conversation
node/tools/src/main.rs
Outdated
let database_path = if let Some((consensus_config, _)) = &configs.consensus { | ||
Path::new("database").join(consensus_config.public_addr.to_string()) | ||
} else { | ||
Path::new("database").join(configs.executor.server_addr.to_string()) |
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.
fyi, "database" is a flag now
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've already merged the main branch with the latest changes, so it should be up-to-date now. I also noticed a modification in the logger initialization, it's currently logging only the ERROR events. I added the necessary environment variable for logging INFO events in the makefile within this commit 9a0d514 and updated the code comment about the logger in this one c1a4653. Let me know if this change was intentional, or if you'd like me to revert it back to logging for the info level by 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.
that was intentional, thx for updating the comment
What ❔
Documented a guide on setting up and running a local consensus node, along with a new Makefile containing commands for easy execution. Also modifies the database directory path for each node.
Why ❔
The README and the Makefile would streamline generating the configuration for all nodes with a single command and simplify running the desired node. About the modification for the database directory path, it seems beneficial for running multiple nodes on a single machine, especially for local testing. However, in the broader architecture of the Test Framework, each node is expected to operate within a distinct Docker container or a similar setup. In that context, this change might not be useful.