From 751061c8467dabe83577637be5b9edefdaff5ba4 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 2 Feb 2023 19:12:21 +0000 Subject: [PATCH] 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) --- src/wallet/wallet_rpc_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 020b16fb8..0cf75a1c4 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -734,9 +734,9 @@ namespace tools CHECK_IF_BACKGROUND_SYNCING(); 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; }