set aux in block import

This commit is contained in:
Robert Habermeier
2018-10-17 13:05:30 -07:00
parent c64ff78776
commit 3f2a7f3cba
4 changed files with 48 additions and 6 deletions
+3
View File
@@ -76,6 +76,9 @@ where
fn reset_storage<I: Iterator<Item=(Vec<u8>, Vec<u8>)>>(&mut self, iter: I) -> error::Result<()>;
/// Inject changes trie data into the database.
fn update_changes_trie(&mut self, update: MemoryDB<H>) -> error::Result<()>;
/// Update auxiliary keys. Values are `None` if should be deleted.
fn set_aux<I>(&mut self, ops: I) -> error::Result<()>
where I: IntoIterator<Item=(Vec<u8>, Option<Vec<u8>>)>;
}
/// Client backend. Manages the data layer.