diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index e1e8f737037..e4bee243042 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -420,8 +420,7 @@ void RPCExecutor::request(const QString &command, const WalletModel* wallet_mode std::smatch match; if (std::regex_match(executableCommand, match, validRegex)) { const std::string nblocks{match.str(1) == "" ? "1" : match.str(1)}; - const std::string maxtries{match.str(2) == "" ? "1000000" : match.str(2)}; - + const std::string maxtries = match.str(2); if (!RPCConsole::RPCExecuteCommandLine(m_node, result, "getnewaddress\n", nullptr, wallet_model)) { Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Parse error: unbalanced ' or \"")); }