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 /src/cryptonote_core | |
parent | device: untangle cyclic depenency (diff) | |
download | monero-8705beaf51c12d7eab5f56f615ec529a2a8efc27.tar.xz |
keypair::generate: always require hw::device to avoid possible mistake
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index cbacc7893..db4ab9e11 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -78,7 +78,7 @@ namespace cryptonote tx.vout.clear(); tx.extra.clear(); - keypair txkey = keypair::generate(); + keypair txkey = keypair::generate(hw::get_device("default")); add_tx_pub_key_to_extra(tx, txkey.pub); if(!extra_nonce.empty()) if(!add_extra_nonce_to_tx_extra(tx.extra, extra_nonce)) |