Skip to content

Commit

Permalink
Try to start bitcoind on load
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Aug 10, 2023
1 parent 6ef5bae commit 830d6f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gui/src/installer/step/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,15 @@ impl Step for StartInternalBitcoindStep {
Command::none()
}

fn load(&self) -> Command<Message> {
if self.started.is_none() {
return Command::perform(async {}, |_| {
Message::StartInternalBitcoind(message::StartInternalBitcoindMsg::Start)
});
}
Command::none()
}

fn apply(&mut self, _ctx: &mut Context) -> bool {
if let Some(res) = self.started.as_ref() {
// This only tells us the command was executed successfully.
Expand Down

0 comments on commit 830d6f4

Please sign in to comment.