forked from lthn/blockchain
added dummy method for CORE_BUSY situation modelling
This commit is contained in:
parent
cbfc172d7c
commit
80672a783b
2 changed files with 25 additions and 0 deletions
|
|
@ -239,6 +239,28 @@ QString MainWindow::get_tx_pool_info()
|
|||
CATCH_ENTRY_FAIL_API_RESPONCE();
|
||||
}
|
||||
|
||||
QString MainWindow::request_dummy()
|
||||
{
|
||||
static int code_ = 0;
|
||||
TRY_ENTRY();
|
||||
LOG_API_TIMING();
|
||||
PREPARE_RESPONSE(currency::COMMAND_RPC_GET_POOL_INFO::response, ar);
|
||||
if (code_ == 2)
|
||||
{
|
||||
code_ = -1;
|
||||
ar.error_code = API_RETURN_CODE_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
ar.error_code = API_RETURN_CODE_OK;
|
||||
}
|
||||
|
||||
++code_;
|
||||
return MAKE_RESPONSE(ar);
|
||||
CATCH_ENTRY_FAIL_API_RESPONCE();
|
||||
}
|
||||
|
||||
|
||||
QString MainWindow::get_default_fee()
|
||||
{
|
||||
TRY_ENTRY();
|
||||
|
|
|
|||
|
|
@ -159,6 +159,9 @@ public:
|
|||
QString is_remnotenode_mode_preconfigured();
|
||||
QString start_backend(const QString& params);
|
||||
|
||||
//for test purposes onlys
|
||||
QString request_dummy();
|
||||
|
||||
signals:
|
||||
void quit_requested(const QString str);
|
||||
void update_daemon_state(const QString str);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue