mirror of
https://github.com/wownero/wownero.git
synced 2026-10-26 02:48:33 +01:00
device_ledger: fix some comments
This commit is contained in:
@@ -332,7 +332,7 @@ namespace hw {
|
|||||||
MDEBUG( "Device "<<this->name << " LOCKed");
|
MDEBUG( "Device "<<this->name << " LOCKed");
|
||||||
}
|
}
|
||||||
|
|
||||||
//lock the device for a long sequence
|
//try to lock the device for a long sequence
|
||||||
bool device_ledger::try_lock(void) {
|
bool device_ledger::try_lock(void) {
|
||||||
MDEBUG( "Ask for LOCKING(try) for device "<<this->name << " in thread ");
|
MDEBUG( "Ask for LOCKING(try) for device "<<this->name << " in thread ");
|
||||||
bool r = device_locker.try_lock();
|
bool r = device_locker.try_lock();
|
||||||
@@ -344,7 +344,7 @@ namespace hw {
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
//lock the device for a long sequence
|
//unlock the device for a long sequence
|
||||||
void device_ledger::unlock(void) {
|
void device_ledger::unlock(void) {
|
||||||
try {
|
try {
|
||||||
MDEBUG( "Ask for UNLOCKING for device "<<this->name << " in thread ");
|
MDEBUG( "Ask for UNLOCKING for device "<<this->name << " in thread ");
|
||||||
@@ -632,7 +632,7 @@ namespace hw {
|
|||||||
bool device_ledger::get_secret_keys(crypto::secret_key &vkey , crypto::secret_key &skey) {
|
bool device_ledger::get_secret_keys(crypto::secret_key &vkey , crypto::secret_key &skey) {
|
||||||
AUTO_LOCK_CMD();
|
AUTO_LOCK_CMD();
|
||||||
|
|
||||||
//secret key are represented as fake key on the wallet side
|
//secret keys are represented as fake keys on the wallet side
|
||||||
memset(vkey.data, 0x00, 32);
|
memset(vkey.data, 0x00, 32);
|
||||||
memset(skey.data, 0xFF, 32);
|
memset(skey.data, 0xFF, 32);
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace hw {
|
|||||||
|
|
||||||
namespace ledger {
|
namespace ledger {
|
||||||
|
|
||||||
/* Minimal supported version */
|
/* Minimum supported version */
|
||||||
#define MINIMAL_APP_VERSION_MAJOR 1
|
#define MINIMAL_APP_VERSION_MAJOR 1
|
||||||
#define MINIMAL_APP_VERSION_MINOR 8
|
#define MINIMAL_APP_VERSION_MINOR 8
|
||||||
#define MINIMAL_APP_VERSION_MICRO 0
|
#define MINIMAL_APP_VERSION_MICRO 0
|
||||||
@@ -177,7 +177,7 @@ namespace hw {
|
|||||||
//hmac for some encrypted value
|
//hmac for some encrypted value
|
||||||
HMACmap hmac_map;
|
HMACmap hmac_map;
|
||||||
|
|
||||||
// To speed up blockchain parsing the view key maybe handle here.
|
// To speed up blockchain parsing the view key may be handled here.
|
||||||
crypto::secret_key viewkey = crypto::null_skey;
|
crypto::secret_key viewkey = crypto::null_skey;
|
||||||
bool has_view_key = false;
|
bool has_view_key = false;
|
||||||
bool requested_view_key = false;
|
bool requested_view_key = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user