File tree 1 file changed +2
-11
lines changed 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -5598,17 +5598,8 @@ impl<SP: Deref> FundedChannel<SP> where
5598
5598
*self.context.next_remote_commitment_tx_fee_info_cached.lock().unwrap() = None;
5599
5599
}
5600
5600
5601
- match &self.context.holder_signer {
5602
- ChannelSignerType::Ecdsa(ecdsa) => {
5603
- ecdsa.validate_counterparty_revocation(
5604
- self.context.cur_counterparty_commitment_transaction_number + 1,
5605
- &secret
5606
- ).map_err(|_| ChannelError::close("Failed to validate revocation from peer".to_owned()))?;
5607
- },
5608
- // TODO (taproot|arik)
5609
- #[cfg(taproot)]
5610
- _ => todo!()
5611
- };
5601
+ self.context.holder_signer.as_ref().validate_counterparty_revocation(self.context.cur_counterparty_commitment_transaction_number + 1, &secret)
5602
+ .map_err(|_| ChannelError::close("Failed to validate revocation from peer".to_owned()))?;
5612
5603
5613
5604
self.context.commitment_secrets.provide_secret(self.context.cur_counterparty_commitment_transaction_number + 1, msg.per_commitment_secret)
5614
5605
.map_err(|_| ChannelError::close("Previous secrets did not match new one".to_owned()))?;
You can’t perform that action at this time.
0 commit comments