aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/is_out_to_acc.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 21:01:20 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 21:01:20 +0200
commit48af25ed837d2f0367109a6c178f7419d07582cf (patch)
treee1b637c86a66c7764d169cb44c49b3843b4b22f7 /tests/performance_tests/is_out_to_acc.h
parentMerge pull request #2657 (diff)
parentperformance_tests: fix build after subaddress patch (diff)
downloadmonero-48af25ed837d2f0367109a6c178f7419d07582cf.tar.xz
Merge pull request #2658
fddd8d22 performance_tests: fix build after subaddress patch (moneromooo-monero)
Diffstat (limited to 'tests/performance_tests/is_out_to_acc.h')
-rw-r--r--tests/performance_tests/is_out_to_acc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/performance_tests/is_out_to_acc.h b/tests/performance_tests/is_out_to_acc.h
index 12ef0f79f..7da061c1e 100644
--- a/tests/performance_tests/is_out_to_acc.h
+++ b/tests/performance_tests/is_out_to_acc.h
@@ -63,7 +63,10 @@ public:
bool test()
{
const cryptonote::txout_to_key& tx_out = boost::get<cryptonote::txout_to_key>(m_tx.vout[0].target);
- return cryptonote::is_out_to_acc_precomp(m_bob.get_keys().m_account_address.m_spend_public_key, tx_out, m_derivation, 0);
+ std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
+ 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;
}
private: