aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-02-02 19:12:21 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-02-03 16:57:48 +0000
commit9e09093a8d7cc428982054ca4a3b9e2650fd6e92 (patch)
tree36bb97aaae1f7351809e82404e67e1d15368bc92 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #8675 (diff)
downloadmonero-9e09093a8d7cc428982054ca4a3b9e2650fd6e92.tar.xz
wallet_rpc_server: allow creating more than 64 addresses at once
it's too low a limit (at least one person mentioned having to call create_address in a loop due to it)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index cecf24289..139856287 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -583,9 +583,9 @@ namespace tools
if (!m_wallet) return not_open(er);
try
{
- if (req.count < 1 || req.count > 64) {
+ if (req.count < 1 || req.count > 65536) {
er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR;
- er.message = "Count must be between 1 and 64.";
+ er.message = "Count must be between 1 and 65536.";
return false;
}