Merge pull request #1286

cd4418d Receive: make tracking optional
a9331a7 Set daemon address to WalletManager (requires #3576)
This commit is contained in:
luigi1111
2018-04-24 21:40:46 -05:00
2 changed files with 12 additions and 2 deletions

View File

@@ -420,7 +420,9 @@ ApplicationWindow {
function connectRemoteNode() {
console.log("connecting remote node");
persistentSettings.useRemoteNode = true;
currentWallet.initAsync(persistentSettings.remoteNodeAddress);
currentDaemonAddress = persistentSettings.remoteNodeAddress;
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddress(currentDaemonAddress);
remoteNodeConnected = true;
}
@@ -429,6 +431,7 @@ ApplicationWindow {
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddress(currentDaemonAddress);
remoteNodeConnected = false;
}