Avoid forcing a resync for the pre-existing journaldbs.

This commit is contained in:
Gav Wood 2016-03-04 21:17:42 +01:00
parent bbbaffbc53
commit bc018faedc

View File

@ -212,7 +212,7 @@ impl Client {
let mut dir = path.to_path_buf(); let mut dir = path.to_path_buf();
dir.push(H64::from(spec.genesis_header().hash()).hex()); dir.push(H64::from(spec.genesis_header().hash()).hex());
//TODO: sec/fat: pruned/full versioning //TODO: sec/fat: pruned/full versioning
dir.push(format!("v{}-sec-pruned-{}", CLIENT_DB_VER_STR, if config.blockchain.prefer_journal { "journal" } else { "archive" })); dir.push(format!("v{}-sec-pruned{}", CLIENT_DB_VER_STR, if config.blockchain.prefer_journal { "" } else { "-archive" }));
let pj = config.blockchain.prefer_journal; let pj = config.blockchain.prefer_journal;
let path = dir.as_path(); let path = dir.as_path();
let gb = spec.genesis_block(); let gb = spec.genesis_block();