Don't prune ancient state when instantiating a Client (#11270)

This commit is contained in:
David 2019-11-22 12:18:24 +01:00 committed by Andronik Ordian
parent 1986c4ee79
commit 6e34ee6837

View File

@ -800,13 +800,6 @@ impl Client {
config, config,
}); });
// prune old states.
{
let state_db = client.state_db.read().boxed_clone();
let chain = client.chain.read();
client.prune_ancient(state_db, &chain)?;
}
// ensure genesis epoch proof in the DB. // ensure genesis epoch proof in the DB.
{ {
let chain = client.chain.read(); let chain = client.chain.read();