Clear state cache on sealed block import (#2377)

This commit is contained in:
Arkadiy Paronyan 2016-09-28 17:24:47 +02:00 committed by Gav Wood
parent facab31551
commit 3c59475be6

View File

@ -1082,6 +1082,8 @@ impl MiningBlockChainClient for Client {
let number = block.header().number();
let block_data = block.rlp_bytes();
// Clear canonical state cache
self.state_db.lock().clear_cache();
let route = self.commit_block(block, &h, &block_data);
trace!(target: "client", "Imported sealed block #{} ({})", number, h);