Skip to content

Commit

Permalink
bitcoind: add stop method
Browse files Browse the repository at this point in the history
This is required by the GUI for stopping an internal bitcoind when closing Liana.
  • Loading branch information
jp1ac4 committed Aug 16, 2023
1 parent 60ee667 commit 3372a8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bitcoin/d/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ impl BitcoinD {
}
}
}

/// Stop bitcoind.
pub fn stop(&self) {
self.make_node_request("stop", &[]);
}
}

/// An entry in the 'listdescriptors' result.
Expand Down

0 comments on commit 3372a8d

Please sign in to comment.