mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
p2pool: Stop p2pool mining on node switch
This commit is contained in:
parent
b7ba9437d8
commit
587ea68a99
1 changed files with 7 additions and 0 deletions
7
main.qml
7
main.qml
|
@ -602,6 +602,9 @@ ApplicationWindow {
|
||||||
function connectRemoteNode() {
|
function connectRemoteNode() {
|
||||||
console.log("connecting remote node");
|
console.log("connecting remote node");
|
||||||
|
|
||||||
|
p2poolManager.exit();
|
||||||
|
p2poolManager.getStatus();
|
||||||
|
|
||||||
const callback = function() {
|
const callback = function() {
|
||||||
persistentSettings.useRemoteNode = true;
|
persistentSettings.useRemoteNode = true;
|
||||||
const remoteNode = remoteNodesModel.currentRemoteNode();
|
const remoteNode = remoteNodesModel.currentRemoteNode();
|
||||||
|
@ -630,6 +633,10 @@ ApplicationWindow {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
console.log("disconnecting remote node");
|
console.log("disconnecting remote node");
|
||||||
|
|
||||||
|
p2poolManager.exit();
|
||||||
|
p2poolManager.getStatus();
|
||||||
|
|
||||||
persistentSettings.useRemoteNode = false;
|
persistentSettings.useRemoteNode = false;
|
||||||
currentDaemonAddress = localDaemonAddress
|
currentDaemonAddress = localDaemonAddress
|
||||||
currentWallet.setDaemonLogin("", "");
|
currentWallet.setDaemonLogin("", "");
|
||||||
|
|
Loading…
Reference in a new issue