no longer lock the state db

This commit is contained in:
Robert Habermeier 2016-06-13 20:02:20 +02:00
parent c36f47bbbf
commit 5b6ea41d9d

View File

@ -770,7 +770,7 @@ impl<V> BlockChainClient for Client<V> where V: Verifier {
// lock the state db while we create the state chunks.
let state_hashes = {
let state_db = self.state_db.lock().unwrap();
let state_db = self.state_db.lock().unwrap().boxed_clone();
chunk_state(state_db.as_hashdb(), &state_root, &path).unwrap()
};