1
0
Fork 0
forked from lthn/blockchain

mainwindow: get_network_type() added to allow the GUI distinguish between mainnet and testnet

This commit is contained in:
sowle 2020-09-19 05:56:21 +03:00
parent cb97ca9994
commit f2fa26f1d8
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 10 additions and 0 deletions

View file

@ -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();

View file

@ -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();