aboutsummaryrefslogtreecommitdiff
path: root/src/device
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 /src/device
parentdevice: untangle cyclic depenency (diff)
downloadmonero-8705beaf51c12d7eab5f56f615ec529a2a8efc27.tar.xz
keypair::generate: always require hw::device to avoid possible mistake
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_default.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp
index 6d60c8cc1..d63dafe9e 100644
--- a/src/device/device_default.cpp
+++ b/src/device/device_default.cpp
@@ -251,7 +251,7 @@ namespace hw {
/* ======================================================================= */
bool device_default::open_tx(crypto::secret_key &tx_key) {
- cryptonote::keypair txkey = cryptonote::keypair::generate();
+ cryptonote::keypair txkey = cryptonote::keypair::generate(*this);
tx_key = txkey.sec;
return true;
}