aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/is_out_to_acc.h
diff options
context:
space:
mode:
authorkenshi84 <kenshi84@protonmail.ch>2017-10-16 13:08:44 +0900
committerkenshi84 <kenshi84@protonmail.ch>2017-10-16 13:08:44 +0900
commite373a2037b10681ca72d38b1777af5f4ec77ba38 (patch)
treefe9d3b6917bae241bacf856b8bfbae9e0615214c /tests/performance_tests/is_out_to_acc.h
parentMerge pull request #2601 (diff)
downloadmonero-e373a2037b10681ca72d38b1777af5f4ec77ba38.tar.xz
performance_tests: add master spend pubkey to subaddress hashtable
Diffstat (limited to 'tests/performance_tests/is_out_to_acc.h')
-rw-r--r--tests/performance_tests/is_out_to_acc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/performance_tests/is_out_to_acc.h b/tests/performance_tests/is_out_to_acc.h
index 7da061c1e..c31897628 100644
--- a/tests/performance_tests/is_out_to_acc.h
+++ b/tests/performance_tests/is_out_to_acc.h
@@ -64,6 +64,7 @@ public:
{
const cryptonote::txout_to_key& tx_out = boost::get<cryptonote::txout_to_key>(m_tx.vout[0].target);
std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
+ subaddresses[m_bob.get_keys().m_account_address.m_spend_public_key] = {0,0};
std::vector<crypto::key_derivation> additional_derivations;
boost::optional<cryptonote::subaddress_receive_info> info = cryptonote::is_out_to_acc_precomp(subaddresses, tx_out.key, m_derivation, additional_derivations, 0);
return (bool)info;