1
0
Fork 0
forked from lthn/blockchain

gui: is_remnotenode_mode_preconfigured() implemented

This commit is contained in:
sowle 2024-12-09 15:52:07 +01:00
parent 8a8e5c3011
commit 8cc4e99199
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 7 additions and 1 deletions

View file

@ -959,7 +959,12 @@ bool MainWindow::init_backend(int argc, char* argv[])
QString MainWindow::is_remnotenode_mode_preconfigured(const QString& param)
{
TRY_ENTRY();
return API_RETURN_CODE_FALSE;
view::api_response ar{};
if (m_backend.is_remote_node_mode())
ar.error_code = API_RETURN_CODE_TRUE;
else
ar.error_code = API_RETURN_CODE_FALSE;
return MAKE_RESPONSE(ar);
CATCH_ENTRY2(API_RETURN_CODE_INTERNAL_ERROR);
}

View file

@ -178,6 +178,7 @@ public:
std::string add_custom_asset_id(uint64_t wallet_id, const crypto::public_key& asset_id, currency::asset_descriptor_base& asset_descriptor);
std::string delete_custom_asset_id(uint64_t wallet_id, const crypto::public_key& asset_id);
bool is_core_initialized() { return m_core_initialized;}
bool is_remote_node_mode() const { return m_remote_node_mode; }
private:
void main_worker(const po::variables_map& vm);