Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 114074c

Browse files
authored
Drain the transaction overlay (#11654)
1 parent f9633e6 commit 114074c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ethcore/snapshot/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@ impl StateRebuilder {
435435
}
436436
}
437437

438+
let backing = self.db.backing().clone();
439+
let mut batch = backing.transaction();
440+
// Drain the transaction overlay and put the data into the batch.
441+
self.db.inject(&mut batch)?;
442+
backing.write_buffered(batch);
443+
438444
Ok(())
439445
}
440446

0 commit comments

Comments
 (0)