Fixed consensus message garbage collection & DB initialization (#841)

* Consensus cleanup

* Fixed DB initialization issue

* Spacing
This commit is contained in:
Arkadiy Paronyan
2018-09-29 16:53:47 +02:00
committed by GitHub
parent e1e6c19f64
commit d4dbc306e8
4 changed files with 57 additions and 33 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ impl<B, E, Block> Client<B, E, Block> where
}
// changes trie configuration should never change => we can read it in advance
let changes_trie_config = backend.state_at(BlockId::Number(Zero::zero()))?
let changes_trie_config = backend.state_at(BlockId::Number(backend.blockchain().info()?.best_number))?
.storage(well_known_keys::CHANGES_TRIE_CONFIG)
.map_err(|e| error::Error::from_state(Box::new(e)))?
.and_then(|c| Decode::decode(&mut &*c));