Set daemon address to WalletManager (requires #3576)

This commit is contained in:
stoffu 2018-04-07 14:10:31 +09:00
parent cd4418dc45
commit a9331a757f
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012
1 changed files with 4 additions and 1 deletions

View File

@ -419,7 +419,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;
}
@ -428,6 +430,7 @@ ApplicationWindow {
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress
currentWallet.initAsync(currentDaemonAddress);
walletManager.setDaemonAddress(currentDaemonAddress);
remoteNodeConnected = false;
}