-
Notifications
You must be signed in to change notification settings - Fork 687
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
Fix issues with testnet dir, update docs #992
Conversation
* Second update for this PR
Co-Authored-By: Age Manning <Age@AgeManning.com>
Purging has been updated @michaelsproul :) |
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.
Looks pretty good! Just a few small nits before I test it out (it looks like it should work)
@@ -221,7 +221,7 @@ where | |||
.get::<PersistedBeaconChain>(&Hash256::from_slice(&BEACON_CHAIN_DB_KEY)) | |||
.map_err(|e| format!("DB error when reading persisted beacon chain: {:?}", e))? | |||
.ok_or_else(|| { | |||
"No persisted beacon chain found in store. Try purging the beacon chain database." | |||
"No persisted beacon chain found in store. Try deleting the .lighthouse/beacon dir." |
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 think this should stay as it was
beacon_node/src/config.rs
Outdated
@@ -294,6 +291,39 @@ pub fn get_config<E: EthSpec>( | |||
client_config.network.discovery_address = | |||
Some("127.0.0.1".parse().expect("Valid IP address")) | |||
} | |||
|
|||
/* | |||
* Load the eth2 testnet dir to obtain some addition config values. |
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.
addition -> additional
book/src/simple-testnet.md
Outdated
@@ -1,70 +1 @@ | |||
# Simple Local Testnet |
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.
This file is just a heading, I think we should delete 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.
Thanks! mdbook
has an annoying habit of creating a file if it's listed in SUMMARY.md
but doesn't exist.
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.
Tested it and it works a treat! Happy to merge once my minor comments are addressed
All comments addressed! :) |
Issue Addressed
NA
Proposed Changes
Fixes a bug introduced in #912 (I assume) that broke some of the
bn testnet ...
subcommands and also the--testnet-dir
command when the hardcoded testnet is invalid (which is the case now).Notably, this PR doesn't fix
bn testnet ...
it only fixes--testnet-dir
and then updates the docs to remove usages ofbn testnet ...
in favor of--testnet-dir
+lcli new-testnet
.Additional Info
A later PR can strip out all the old
bn testnet ...
subcommands.