]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop excess mut on `OnchainTxHandler::generate_external_htlc_claim`
authorMatt Corallo <git@bluematt.me>
Wed, 7 Dec 2022 00:40:17 +0000 (00:40 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 7 Dec 2022 23:17:58 +0000 (23:17 +0000)
lightning/src/chain/onchaintx.rs

index b75349469f81bbd3df5a598a167be82ad5c86e44..9bfe6fa9af21b1547e5aa8bf2183062cde66f4cd 100644 (file)
@@ -1047,7 +1047,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
 
        #[cfg(anchors)]
        pub(crate) fn generate_external_htlc_claim(
-               &mut self, outp: &::bitcoin::OutPoint, preimage: &Option<PaymentPreimage>
+               &self, outp: &::bitcoin::OutPoint, preimage: &Option<PaymentPreimage>
        ) -> Option<ExternalHTLCClaim> {
                let find_htlc = |holder_commitment: &HolderCommitmentTransaction| -> Option<ExternalHTLCClaim> {
                        let trusted_tx = holder_commitment.trust();