Skip to content

Commit

Permalink
Merge pull request #132 from victor-tucci/dev
Browse files Browse the repository at this point in the history
Establish Mainnet HF-18 Height
  • Loading branch information
sanada08 authored Dec 7, 2023
2 parents 40c16f9 + ab82766 commit a0f7cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cryptonote_basic/hardfork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/core_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a0f7cdc

Please sign in to comment.