Function commit_changes_with_height_update

Source
pub fn commit_changes_with_height_update<Description>(
    database: &mut Database<Description>,
    changes: Changes,
    heights_lookup: impl Fn(&ChangesIterator<'_, Description::Column>) -> Result<Vec<Description::Height>>,
) -> Result<()>
where Description: DatabaseDescription, Description::Height: Debug + PartialOrd + DatabaseHeight, for<'a> StorageTransaction<&'a &'a mut Database<Description>>: StorageMutate<MetadataTable<Description>, Error = Error>,