aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 19:32:18 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 19:32:18 +0200
commit97c11caf0795e5edafa39a167a96f41b2a4fc38c (patch)
tree087221b619ee644eaece447b5c0d2bc97d35e3fc /src/wallet/wallet2.cpp
parentMerge pull request #2640 (diff)
parentfix lightwallet and subaddresses conflict (diff)
downloadmonero-97c11caf0795e5edafa39a167a96f41b2a4fc38c.tar.xz
Merge pull request #2656
3492de01 fix lightwallet and subaddresses conflict (Jaquee) 329f149e remove reference to cryptonote::null_hash (Jaquee)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index f316b5d1d..cc0e9e7e2 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5324,7 +5324,12 @@ bool wallet2::light_wallet_key_image_is_ours(const crypto::key_image& key_image,
// Not in cache - calculate key image
crypto::key_image calculated_key_image;
cryptonote::keypair in_ephemeral;
- cryptonote::generate_key_image_helper(get_account().get_keys(), tx_public_key, out_index, in_ephemeral, calculated_key_image);
+
+ // Subaddresses aren't supported in mymonero/openmonero yet. Using empty values.
+ const std::vector<crypto::public_key> additional_tx_pub_keys;
+ const crypto::public_key pkey = crypto::null_pkey;
+
+ cryptonote::generate_key_image_helper(get_account().get_keys(), m_subaddresses, pkey, tx_public_key, additional_tx_pub_keys, out_index, in_ephemeral, calculated_key_image);
index_keyimage_map.emplace(out_index, calculated_key_image);
m_key_image_cache.emplace(tx_public_key, index_keyimage_map);
return key_image == calculated_key_image;