[bdk_chain_redesign] Fix tx_graph::Additions::append logic

This commit is contained in:
志宇 2023-04-26 01:09:19 +08:00
parent 1b152647c5
commit f101dde09b
No known key found for this signature in database
GPG Key ID: F6345C9837C2BDE8

View File

@ -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);
}
}