projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1890e80
)
Skip `BestBlock::new` in bindings as we already have one
author
Matt Corallo
<git@bluematt.me>
Sat, 11 May 2024 16:10:56 +0000
(16:10 +0000)
committer
Matt Corallo
<git@bluematt.me>
Mon, 13 May 2024 18:55:22 +0000
(18:55 +0000)
lightning/src/chain/mod.rs
patch
|
blob
|
history
diff --git
a/lightning/src/chain/mod.rs
b/lightning/src/chain/mod.rs
index 8639e268dff842a68660218b3e57aaa392ea249f..71b29b672caf7df8dfd3129ab20bd1b2aa0c326b 100644
(file)
--- a/
lightning/src/chain/mod.rs
+++ b/
lightning/src/chain/mod.rs
@@
-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 }
}