mirror of
https://github.com/monero-project/monero-gui
synced 2025-02-16 12:04:28 +01:00
Merge pull request #4092
587ea68
p2pool: Stop p2pool mining on node switch (devhyper)
This commit is contained in:
commit
3338bc3741
7
main.qml
7
main.qml
@ -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("", "");
|
||||
|
Loading…
Reference in New Issue
Block a user