Commit best block after closing transaction (#1791)

This commit is contained in:
Arkadiy Paronyan
2016-08-01 19:10:13 +02:00
committed by Gav Wood
parent b26f8c3f33
commit d891e80ad7
3 changed files with 56 additions and 9 deletions

View File

@@ -452,6 +452,7 @@ impl Client {
});
// Final commit to the DB
self.db.write(batch).expect("State DB write failed.");
self.chain.commit();
self.update_last_hashes(&parent, hash);
route