Make claim_funds_INTERNAL private
[rust-lightning] / src / ln / channelmanager.rs
index 8eb91ea5dc6e28b469dfb7967d84b450ff38fbeb..c674c269616febc6ad97f95c301ef72462f0d126 100644 (file)
@@ -961,7 +961,7 @@ impl ChannelManager {
        pub fn claim_funds(&self, payment_preimage: [u8; 32]) -> bool {
                self.claim_funds_internal(payment_preimage, true)
        }
-       pub fn claim_funds_internal(&self, payment_preimage: [u8; 32], from_user: bool) -> bool {
+       fn claim_funds_internal(&self, payment_preimage: [u8; 32], from_user: bool) -> bool {
                let mut sha = Sha256::new();
                sha.input(&payment_preimage);
                let mut payment_hash = [0; 32];