only load ancestry from chain closure in engine

This commit is contained in:
Robert Habermeier
2017-08-24 16:29:31 +02:00
parent b953f9b66a
commit c79ecee094
2 changed files with 12 additions and 7 deletions

View File

@@ -411,8 +411,8 @@ impl HeaderChain {
self.live_epoch_proofs.write().insert(hash, transition);
}
let raw = ::rlp::encode(&header);
transaction.put(self.col, &hash[..], &*raw);
let raw = header.encoded().into_inner();
transaction.put_vec(self.col, &hash[..], raw);
let (best_num, is_new_best) = {
let cur_best = self.best_block.read();