Skip to content

Commit

Permalink
bitcoind: use the node client to make node requests
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Aug 29, 2023
1 parent d5c98aa commit 242a72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitcoin/d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ impl BitcoinD {
method: &str,
params: &[Box<serde_json::value::RawValue>],
) -> Result<Json, BitcoindError> {
self.make_request(&self.node_client, method, params)
self.make_request(&self.sendonly_client, method, params)
}

fn make_node_request(&self, method: &str, params: &[Box<serde_json::value::RawValue>]) -> Json {
self.make_request(&self.sendonly_client, method, params)
self.make_request(&self.node_client, method, params)
.expect("We must not fail to make a request for more than a minute")
}

Expand Down

0 comments on commit 242a72a

Please sign in to comment.