Merge pull request #4092

587ea68 p2pool: Stop p2pool mining on node switch (devhyper)
This commit is contained in:
luigi1111 2023-02-15 10:51:37 -05:00
commit 3338bc3741
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 7 additions and 0 deletions

View File

@ -602,6 +602,9 @@ ApplicationWindow {
function connectRemoteNode() {
console.log("connecting remote node");
p2poolManager.exit();
p2poolManager.getStatus();
const callback = function() {
persistentSettings.useRemoteNode = true;
const remoteNode = remoteNodesModel.currentRemoteNode();
@ -630,6 +633,10 @@ ApplicationWindow {
return;
console.log("disconnecting remote node");
p2poolManager.exit();
p2poolManager.getStatus();
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress
currentWallet.setDaemonLogin("", "");