- Stop making a request for the block height when calling `Wallet:new`.
- Added `SyncOptions` to capture extra (future) arguments to `Wallet::sync`.
- Removed `max_addresses` sync parameter which determined how many addresses to cache before syncing since this can just be done with `ensure_addresses_cached`.
+- remove `flush` method from the `Database` trait.
## [v0.16.1] - [v0.16.0]
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error> {
impl_inner_method!(AnyDatabase, self, increment_last_index, keychain)
}
-
- fn flush(&mut self) -> Result<(), Error> {
- impl_inner_method!(AnyDatabase, self, flush)
- }
}
impl BatchOperations for AnyBatch {
Ok(val)
})
}
-
- fn flush(&mut self) -> Result<(), Error> {
- Ok(Tree::flush(self).map(|_| ())?)
- }
}
impl BatchDatabase for Tree {
Ok(*value)
}
-
- fn flush(&mut self) -> Result<(), Error> {
- Ok(())
- }
}
impl BatchDatabase for MemoryDatabase {
///
/// It should insert and return `0` if not present in the database
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error>;
-
- #[deprecated(
- since = "0.18.0",
- note = "The flush function is only needed for the sled database on mobile, instead for mobile use the sqlite database."
- )]
- /// Force changes to be written to disk
- fn flush(&mut self) -> Result<(), Error>;
}
/// Trait for a database that supports batch operations
}
}
}
-
- fn flush(&mut self) -> Result<(), Error> {
- Ok(())
- }
}
impl BatchDatabase for SqliteDatabase {