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>
Mon, 13 May 2024 18:55:22 +0000 (18:55 +0000)
lightning/src/chain/mod.rs

index 8639e268dff842a68660218b3e57aaa392ea249f..71b29b672caf7df8dfd3129ab20bd1b2aa0c326b 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 }
        }