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

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;
}