diff options
author | stoffu <stoffu@protonmail.ch> | 2018-03-05 17:02:17 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-03-14 21:00:16 +0900 |
commit | 8705beaf51c12d7eab5f56f615ec529a2a8efc27 (patch) | |
tree | dc783650bd3ffe9b7baef0ae9ab4435dc1dc69a8 /tests/core_tests/tx_validation.cpp | |
parent | device: untangle cyclic depenency (diff) | |
download | monero-8705beaf51c12d7eab5f56f615ec529a2a8efc27.tar.xz |
keypair::generate: always require hw::device to avoid possible mistake
Diffstat (limited to 'tests/core_tests/tx_validation.cpp')
-rw-r--r-- | tests/core_tests/tx_validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core_tests/tx_validation.cpp b/tests/core_tests/tx_validation.cpp index d6d5236aa..f0a385ee5 100644 --- a/tests/core_tests/tx_validation.cpp +++ b/tests/core_tests/tx_validation.cpp @@ -49,7 +49,7 @@ namespace m_tx.version = version; m_tx.unlock_time = unlock_time; - m_tx_key = keypair::generate(); + m_tx_key = keypair::generate(hw::get_device("default")); add_tx_pub_key_to_extra(m_tx, m_tx_key.pub); } @@ -518,7 +518,7 @@ bool gen_tx_key_image_not_derive_from_tx_key::generate(std::vector<test_event_en builder.step2_fill_inputs(miner_account.get_keys(), sources); txin_to_key& in_to_key = boost::get<txin_to_key>(builder.m_tx.vin.front()); - keypair kp = keypair::generate(); + keypair kp = keypair::generate(hw::get_device("default")); key_image another_ki; crypto::generate_key_image(kp.pub, kp.sec, another_ki); in_to_key.k_image = another_ki; |