From 32a26332f8ad4b58e697ed360f8a67b64cdd649b Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 30 Dec 2015 12:25:29 +0200 Subject: no longer need to pass the size to rapidjson --- src/wallet/wallet2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 123637a6f..cfa33b283 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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 } -- cgit v1.2.3