keypair::generate: always require hw::device to avoid possible mistake

This commit is contained in:
stoffu 2018-03-05 17:02:17 +09:00
parent 27a196b126
commit 8705beaf51
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
6 changed files with 6 additions and 12 deletions

View file

@ -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;
}