mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 04:55:33 -04:00
no longer need to pass the size to rapidjson
This commit is contained in:
parent
bd8e0fd2a1
commit
32a26332f8
31 changed files with 3763 additions and 1143 deletions
|
@ -894,7 +894,7 @@ void wallet2::load_keys(const std::string& keys_file_name, const std::string& pa
|
|||
|
||||
// The contents should be JSON if the wallet follows the new format.
|
||||
rapidjson::Document json;
|
||||
if (json.Parse(account_data.c_str(), keys_file_data.account_data.size()).HasParseError())
|
||||
if (json.Parse(account_data.c_str()).HasParseError())
|
||||
{
|
||||
is_old_file_format = true;
|
||||
m_watch_only = false;
|
||||
|
@ -972,7 +972,7 @@ bool wallet2::verify_password(const std::string& password) const
|
|||
|
||||
// The contents should be JSON if the wallet follows the new format.
|
||||
rapidjson::Document json;
|
||||
if (json.Parse(account_data.c_str(), keys_file_data.account_data.size()).HasParseError())
|
||||
if (json.Parse(account_data.c_str()).HasParseError())
|
||||
{
|
||||
// old format before JSON wallet key file format
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue