fix panic for managed bitcoind on network change
close #934 Co-authored-by: jp1ac4 <121959000+jp1ac4@users.noreply.github.com>
This commit is contained in:
parent
e671e508ef
commit
a7b8486079
@ -689,7 +689,10 @@ impl Step for InternalBitcoindStep {
|
||||
self.exe_download = Some(Download::new(0));
|
||||
};
|
||||
}
|
||||
self.network = ctx.bitcoin_config.network;
|
||||
if self.network != ctx.bitcoin_config.network {
|
||||
self.internal_bitcoind_config = None;
|
||||
self.network = ctx.bitcoin_config.network;
|
||||
}
|
||||
if let Some(Ok(_)) = self.started {
|
||||
// This case can arise if a user switches from internal bitcoind to external and back to internal.
|
||||
if ctx.bitcoind_config.is_none() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user