From ab8276696eeca9712932569628485cf4edc4f3ba Mon Sep 17 00:00:00 2001 From: victor-tucci Date: Wed, 6 Dec 2023 16:33:14 +0530 Subject: [PATCH] Establish Mainnet HF-18 Height --- src/cryptonote_basic/hardfork.cpp | 1 + src/rpc/core_rpc_server.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryptonote_basic/hardfork.cpp b/src/cryptonote_basic/hardfork.cpp index a6d7d915c26..ed886e78f77 100755 --- a/src/cryptonote_basic/hardfork.cpp +++ b/src/cryptonote_basic/hardfork.cpp @@ -43,6 +43,7 @@ static constexpr std::array mainnet_hard_forks = hard_fork{12, 0, 126874, 1578704502 }, hard_fork{15, 0, 742420, 1636320320 }, //Friday, December 10, 2021 6:00:00 PM (GMT) hard_fork{17, 0, 742421, 1636320540 }, + hard_fork{18, 0, 2986890, 1706506200 }, // Monday, January 29, 2024 5:30:00 AM (UTC) }; static constexpr std::array testnet_hard_forks = diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 3df28a2136e..fb8aaef23aa 100755 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -3648,7 +3648,7 @@ namespace cryptonote { namespace rpc { if (req.encrypted_value.size() % 2 != 0) throw rpc_error{ERROR_INVALID_VALUE_LENGTH, "Value length not divisible by 2, length=" + std::to_string(req.encrypted_value.size())}; - if (req.encrypted_value.size() >= (bns::mapping_value::BUFFER_SIZE * 2)) + if ((req.encrypted_value.size() >= (bns::mapping_value::BUFFER_SIZE * 2)) && !(req.type =="wallet")) throw rpc_error{ERROR_INVALID_VALUE_LENGTH, "Value too long to decrypt=" + req.encrypted_value}; if (!oxenc::is_hex(req.encrypted_value))