- for (txid, &(_, ref outputs)) in self.counterparty_commitment_txn_on_chain.iter() {
- let watched_outputs = self.outputs_to_watch.get(txid).expect("Counterparty commitment txn which have been broadcast should have outputs registered");
- assert_eq!(watched_outputs.len(), outputs.len());
- for (watched, output) in watched_outputs.iter().zip(outputs.iter()) {
- assert_eq!(watched, output);
- }
+ for (txid, _) in self.counterparty_commitment_txn_on_chain.iter() {
+ self.outputs_to_watch.get(txid).expect("Counterparty commitment txn which have been broadcast should have outputs registered");