We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Append
1 parent 06a956a commit 79b84beCopy full SHA for 79b84be
crates/bdk/src/wallet/mod.rs
@@ -138,6 +138,10 @@ impl Append for ChangeSet {
138
Append::append(&mut self.chain, other.chain);
139
Append::append(&mut self.indexed_tx_graph, other.indexed_tx_graph);
140
if other.network.is_some() {
141
+ debug_assert!(
142
+ self.network.is_none() || self.network == other.network,
143
+ "network type must be consistent"
144
+ );
145
self.network = other.network;
146
}
147
0 commit comments