Added purge subcommand to purge beacon chain db (#971)

This commit is contained in:
ethDreamer
2020-04-13 20:45:02 -04:00
committed by GitHub
parent 869b0621d6
commit 065ea15c9f
4 changed files with 94 additions and 4 deletions

View File

@@ -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 deleting the .lighthouse/beacon dir."
"No persisted beacon chain found in store. Try purging the beacon chain database."
.to_string()
})?;