Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hernanmarino committed Jan 2, 2023
1 parent b7782a4 commit 9b0b762
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 \""));
}
Expand Down

0 comments on commit 9b0b762

Please sign in to comment.