fix(chain): tx_graph::ChangeSet::is_empty

This commit is contained in:
LLFourn
2024-02-09 19:43:26 +11:00
parent 7aca88474a
commit ae00e1ee7b
2 changed files with 13 additions and 4 deletions

View File

@@ -1214,7 +1214,10 @@ impl<A> Default for ChangeSet<A> {
impl<A> ChangeSet<A> {
/// Returns true if the [`ChangeSet`] is empty (no transactions or txouts).
pub fn is_empty(&self) -> bool {
self.txs.is_empty() && self.txouts.is_empty()
self.txs.is_empty()
&& self.txouts.is_empty()
&& self.anchors.is_empty()
&& self.last_seen.is_empty()
}
/// Iterates over all outpoints contained within [`ChangeSet`].