Merge pull request #4574

a04d68f6 SOFTWARE is the default wallet device (m2049r)
release-v0.5.1
Riccardo Spagni 6 years ago
commit 6834ce6de2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

@ -3611,6 +3611,7 @@ bool wallet2::query_device(hw::device::device_type& device_type, const std::stri
if (json.Parse(account_data.c_str()).HasParseError() || !json.IsObject())
crypto::chacha8(keys_file_data.account_data.data(), keys_file_data.account_data.size(), key, keys_file_data.iv, &account_data[0]);
device_type = hw::device::device_type::SOFTWARE;
// The contents should be JSON if the wallet follows the new format.
if (json.Parse(account_data.c_str()).HasParseError())
{

Loading…
Cancel
Save