Merge #645: bitcoind: use the node client to make node requests

9255b5ed941f04e56de4f32251fbe9b3d692baaa bitcoind: use the node client to make node requests (Antoine Poinsot)

Pull request description:

  Props to Kevin for finding this rather significant bug. We should really be catching this type of bugs with code review..

ACKs for top commit:
  darosior:
    Ironical self-ACK 9255b5ed941f04e56de4f32251fbe9b3d692baaa

Tree-SHA512: da7b54e73201ce7f6003b7c939a576a33f6b3ea7234370b976dc9a6525cb3a18a10d160d60932b44e445fbb6057d07efde283fcfad1974c6734b5b4d2d0868de
This commit is contained in:
Antoine Poinsot 2023-08-29 17:38:44 +02:00
commit ea3804ac93
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -429,7 +429,7 @@ impl BitcoinD {
}
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")
}