- fn get_block<'a>(
- &'a mut self, header_hash: &'a BlockHash,
- ) -> AsyncBlockSourceResult<'a, Block> {
- Box::pin(async move {
- let mut rpc = self.bitcoind_rpc_client.lock().await;
- rpc.get_block(header_hash).await
- })
+ fn get_block<'a>(&'a self, header_hash: &'a BlockHash) -> AsyncBlockSourceResult<'a, Block> {
+ Box::pin(async move { self.bitcoind_rpc_client.get_block(header_hash).await })