[persist_redesign] Introduce redesigned persist types
This is a more generic version of `keychain::persist::*` structures. Additional changes: * The `Append` trait has a new method `is_empty`. * Introduce `Store` structure for `bdk_file_store`.
This commit is contained in:
@@ -940,6 +940,13 @@ impl<A: Ord> Append for Additions<A> {
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
}
|
||||
|
||||
fn is_empty(&self) -> bool {
|
||||
self.tx.is_empty()
|
||||
&& self.txout.is_empty()
|
||||
&& self.anchors.is_empty()
|
||||
&& self.last_seen.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
impl<A> AsRef<TxGraph<A>> for TxGraph<A> {
|
||||
|
||||
Reference in New Issue
Block a user