diff --git a/ethcore/snapshot/src/lib.rs b/ethcore/snapshot/src/lib.rs index c6038e591..c119917bc 100644 --- a/ethcore/snapshot/src/lib.rs +++ b/ethcore/snapshot/src/lib.rs @@ -435,6 +435,12 @@ impl StateRebuilder { } } + let backing = self.db.backing().clone(); + let mut batch = backing.transaction(); + // Drain the transaction overlay and put the data into the batch. + self.db.inject(&mut batch)?; + backing.write_buffered(batch); + Ok(()) }