Expose counterparty-revoked-outputs in `get_claimable_balance`
[rust-lightning] / lightning / src / chain / onchaintx.rs
index 8f62c43c44e5a41b7229e004c13a4d7840cdf1ff..0f2edff5ed78bd3472e2f7c93ad8b2e845c62ba1 100644 (file)
@@ -691,6 +691,10 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
                }
        }
 
+       pub(crate) fn is_output_spend_pending(&self, outpoint: &BitcoinOutPoint) -> bool {
+               self.claimable_outpoints.get(outpoint).is_some()
+       }
+
        pub(crate) fn get_relevant_txids(&self) -> Vec<Txid> {
                let mut txids: Vec<Txid> = self.onchain_events_awaiting_threshold_conf
                        .iter()