forked from lthn/blockchain
gui: is_remnotenode_mode_preconfigured() implemented
This commit is contained in:
parent
8a8e5c3011
commit
8cc4e99199
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue