forked from lthn/blockchain
mainwindow: get_network_type() added to allow the GUI distinguish between mainnet and testnet
This commit is contained in:
parent
cb97ca9994
commit
f2fa26f1d8
2 changed files with 10 additions and 0 deletions
|
|
@ -913,6 +913,15 @@ QString MainWindow::get_os_version()
|
|||
CATCH_ENTRY2(API_RETURN_CODE_INTERNAL_ERROR);
|
||||
}
|
||||
|
||||
QString MainWindow::get_network_type()
|
||||
{
|
||||
#if defined(TESTNET)
|
||||
return "testnet";
|
||||
#else
|
||||
return "mainnet";
|
||||
#endif
|
||||
}
|
||||
|
||||
QString MainWindow::get_alias_coast(const QString& param)
|
||||
{
|
||||
TRY_ENTRY();
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ public:
|
|||
|
||||
QString get_version();
|
||||
QString get_os_version();
|
||||
QString get_network_type();
|
||||
QString transfer(const QString& json_transfer_object);
|
||||
QString have_secure_app_data();
|
||||
QString drop_secure_app_data();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue