We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Emitter::new
1 parent 9a250ba commit f1b112eCopy full SHA for f1b112e
crates/bitcoind_rpc/src/lib.rs
@@ -43,7 +43,11 @@ pub struct Emitter<'c, C> {
43
}
44
45
impl<'c, C: bitcoincore_rpc::RpcApi> Emitter<'c, C> {
46
- /// TODO
+ /// Construct a new [`Emitter`] with the given RPC `client`, `last_cp` and `start_height`.
47
+ ///
48
+ /// * `last_cp` is the check point used to find the latest block which is still part of the best
49
+ /// chain.
50
+ /// * `start_height` is the block height to start emitting blocks from.
51
pub fn new(client: &'c C, last_cp: CheckPoint, start_height: u32) -> Self {
52
Self {
53
client,
0 commit comments