From 3372a8d461f1b06cff08d913b45328e3dcd75da7 Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Fri, 11 Aug 2023 12:37:17 +0100 Subject: [PATCH] bitcoind: add `stop` method This is required by the GUI for stopping an internal bitcoind when closing Liana. --- src/bitcoin/d/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bitcoin/d/mod.rs b/src/bitcoin/d/mod.rs index bc4a89be..9f011590 100644 --- a/src/bitcoin/d/mod.rs +++ b/src/bitcoin/d/mod.rs @@ -1096,6 +1096,11 @@ impl BitcoinD { } } } + + /// Stop bitcoind. + pub fn stop(&self) { + self.make_node_request("stop", &[]); + } } /// An entry in the 'listdescriptors' result.