Skip to content

Commit

Permalink
Use new RPC client in Reorg::get_block_with_retries (ordinals#2650)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 10, 2023
1 parent 48a6d6e commit 4bca2a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/index/fetcher.rs
Original file line number Diff line number Diff line change
@@ -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},
};

Expand Down
3 changes: 2 additions & 1 deletion src/index/reorg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4bca2a2

Please sign in to comment.