support getting connection auto switch flag from grpc api

get connection auto switch flag from grpc api
This commit is contained in:
woodser 2024-10-07 09:21:23 -04:00 committed by GitHub
parent a1b50a7b42
commit ebc28805c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 0 deletions

View file

@ -247,6 +247,10 @@ public class CoreApi {
xmrConnectionService.setAutoSwitch(autoSwitch);
}
public boolean getXmrConnectionAutoSwitch() {
return xmrConnectionService.getAutoSwitch();
}
///////////////////////////////////////////////////////////////////////////////////////////
// Monero node
///////////////////////////////////////////////////////////////////////////////////////////

View file

@ -349,6 +349,11 @@ public final class XmrConnectionService {
connectionList.setAutoSwitch(autoSwitch);
}
public boolean getAutoSwitch() {
accountService.checkAccountOpen();
return connectionList.getAutoSwitch();
}
public boolean isConnectionLocalHost() {
return isConnectionLocalHost(getConnection());
}