(&self)
| 211 | #[async_trait] |
| 212 | impl BlockheightProvider for ClnApiRpc { |
| 213 | async fn get_blockheight(&self) -> Result<Blockheight> { |
| 214 | let mut rpc = self.create_rpc().await?; |
| 215 | let info = rpc |
| 216 | .call_typed(&GetinfoRequest {}) |
| 217 | .await |
| 218 | .map_err(anyhow::Error::new) |
| 219 | .with_context(|| "calling getinfo")?; |
| 220 | Ok(info.blockheight) |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected