aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/chaingen.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-03-05 17:02:17 +0900
committerstoffu <stoffu@protonmail.ch>2018-03-14 21:00:16 +0900
commit8705beaf51c12d7eab5f56f615ec529a2a8efc27 (patch)
treedc783650bd3ffe9b7baef0ae9ab4435dc1dc69a8 /tests/core_tests/chaingen.cpp
parentdevice: untangle cyclic depenency (diff)
downloadmonero-8705beaf51c12d7eab5f56f615ec529a2a8efc27.tar.xz
keypair::generate: always require hw::device to avoid possible mistake
Diffstat (limited to 'tests/core_tests/chaingen.cpp')
-rw-r--r--tests/core_tests/chaingen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp
index 5e1525e3e..41256a4f1 100644
--- a/tests/core_tests/chaingen.cpp
+++ b/tests/core_tests/chaingen.cpp
@@ -521,7 +521,7 @@ bool construct_miner_tx_manually(size_t height, uint64_t already_generated_coins
keypair* p_txkey/* = 0*/)
{
keypair txkey;
- txkey = keypair::generate();
+ txkey = keypair::generate(hw::get_device("default"));
add_tx_pub_key_to_extra(tx, txkey.pub);
if (0 != p_txkey)