parent
b6a25ba30a
commit
15ebc98877
@ -499,8 +499,13 @@ impl StateRebuilder {
|
|||||||
account_trie.insert(&hash, &thin_rlp)?;
|
account_trie.insert(&hash, &thin_rlp)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
trace!(target: "snapshot", "current state root: {:?}", self.state_root);
|
trace!(target: "snapshot", "current state root: {:?}", self.state_root);
|
||||||
|
|
||||||
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user