Skip to content

Commit 9b0b762

Browse files
committed
Minor improvements
1 parent b7782a4 commit 9b0b762

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ void RPCExecutor::request(const QString &command, const WalletModel* wallet_mode
420420
std::smatch match;
421421
if (std::regex_match(executableCommand, match, validRegex)) {
422422
const std::string nblocks{match.str(1) == "" ? "1" : match.str(1)};
423-
const std::string maxtries{match.str(2) == "" ? "1000000" : match.str(2)};
424-
423+
const std::string maxtries = match.str(2);
425424
if (!RPCConsole::RPCExecuteCommandLine(m_node, result, "getnewaddress\n", nullptr, wallet_model)) {
426425
Q_EMIT reply(RPCConsole::CMD_ERROR, QString("Parse error: unbalanced ' or \""));
427426
}

0 commit comments

Comments
 (0)