From 028d1f296a047c6ee14aeddba542aa948ce56c98 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 8 Nov 2023 16:20:49 -0800 Subject: [PATCH] Use new RPC client in Reorg::get_block_with_retries --- src/index/fetcher.rs | 5 +---- src/index/reorg.rs | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/index/fetcher.rs b/src/index/fetcher.rs index 774405b9f5..9bb38d9e80 100644 --- a/src/index/fetcher.rs +++ b/src/index/fetcher.rs @@ -1,10 +1,7 @@ use { - crate::Options, - anyhow::{anyhow, Result}, + super::*, base64::Engine, - bitcoin::{Transaction, Txid}, hyper::{client::HttpConnector, Body, Client, Method, Request, Uri}, - serde::Deserialize, serde_json::{json, Value}, }; diff --git a/src/index/reorg.rs b/src/index/reorg.rs index fc6164282c..3102cdc7d7 100644 --- a/src/index/reorg.rs +++ b/src/index/reorg.rs @@ -85,7 +85,8 @@ impl Reorg { if (height < SAVEPOINT_INTERVAL || height % SAVEPOINT_INTERVAL == 0) && index - .client + .options + .bitcoin_rpc_client()? .get_blockchain_info()? .headers .saturating_sub(height)