We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c82ab0 commit 3dca4f6Copy full SHA for 3dca4f6
src/client/rpc_api.rs
@@ -628,6 +628,11 @@ impl RpcApi for Client {
628
629
Ok(vec![tip])
630
}
631
+
632
+ #[tracing::instrument(skip_all)]
633
+ fn get_block_hash(&self, height: u64) -> bitcoincore_rpc::Result<bitcoin::BlockHash> {
634
+ Ok(self.ledger.get_block_with_height(height as u32)?.block_hash())
635
+ }
636
637
638
#[cfg(test)]
src/ledger/block.rs
@@ -182,7 +182,6 @@ impl Ledger {
182
"SELECT body FROM blocks WHERE hash = ?1",
183
params![encoded_hash],
184
|row| {
185
- tracing::error!("row {:?}", row);
186
Ok(row.get::<_, Vec<u8>>(0).unwrap())
187
},
188
) {
0 commit comments