mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-27 08:55:22 -04:00
support getting connection auto switch flag from grpc api
get connection auto switch flag from grpc api
This commit is contained in:
parent
a1b50a7b42
commit
ebc28805c8
4 changed files with 29 additions and 0 deletions
|
@ -247,6 +247,10 @@ public class CoreApi {
|
|||
xmrConnectionService.setAutoSwitch(autoSwitch);
|
||||
}
|
||||
|
||||
public boolean getXmrConnectionAutoSwitch() {
|
||||
return xmrConnectionService.getAutoSwitch();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Monero node
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue