Skip to content

Commit

Permalink
[bdk_chain_redesign] Fix tx_graph::Additions::append logic
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlinjin committed Apr 25, 2023
1 parent 1b15264 commit f101dde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/chain/src/tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,14 @@ impl<A> Additions<A> {

/// Appends the changes in `other` into self such that applying `self` afterward has the same
/// effect as sequentially applying the original `self` and `other`.
pub fn append(&mut self, mut other: Additions<A>) {
pub fn append(&mut self, mut other: Additions<A>)
where
A: Ord,
{
self.tx.append(&mut other.tx);
self.txout.append(&mut other.txout);
self.anchors.append(&mut other.anchors);
self.last_seen.append(&mut other.last_seen);
}
}

Expand Down

0 comments on commit f101dde

Please sign in to comment.