]> git.bitcoin.ninja Git - rust-lightning/commitdiff
[UPSTREAM] Skip `BestBlock::new` in bindings as we already have one
authorMatt Corallo <git@bluematt.me>
Sat, 11 May 2024 16:10:56 +0000 (16:10 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 11 May 2024 16:22:19 +0000 (16:22 +0000)
lightning/src/chain/mod.rs

index a8afc7a1acbda8310ad7fb2d6744bca9974465f9..947530085cfd007ddcb1b6831a893736e95b05fe 100644 (file)
@@ -52,6 +52,9 @@ impl BestBlock {
        }
 
        /// Returns a `BestBlock` as identified by the given block hash and height.
+       ///
+       /// This is not exported to bindings users directly as the bindings auto-generate an
+       /// equivalent `new`.
        pub fn new(block_hash: BlockHash, height: u32) -> Self {
                BestBlock { block_hash, height }
        }