]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Make claim_funds_INTERNAL private 2018-07-event-fixes
authorMatt Corallo <git@bluematt.me>
Wed, 25 Jul 2018 02:31:52 +0000 (22:31 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 25 Jul 2018 02:33:12 +0000 (22:33 -0400)
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];