aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_default.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-04-12 11:12:33 +0200
committerRiccardo Spagni <ric@spagni.net>2018-04-12 11:12:33 +0200
commit96b2fee7210f30352820635c8340e9a922fa9d21 (patch)
treeb6601233411e47e358c81d09ccdbb8a9dd422b5b /src/device/device_default.cpp
parentMerge pull request #3492 (diff)
parentAdd the possibility to export private view key for fast scan. (diff)
downloadmonero-96b2fee7210f30352820635c8340e9a922fa9d21.tar.xz
Merge pull request #3536
c77d2bfa Add the possibility to export private view key for fast scan. (cslashm) 100b7bc1 Change mutex lock model to avoid dead lock and ensure locks are always released. (cslashm) 641dfc99 Automatic height setup when creating/restoring hw device. (cslashm)
Diffstat (limited to '')
-rw-r--r--src/device/device_default.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp
index d63dafe9e..96838a289 100644
--- a/src/device/device_default.cpp
+++ b/src/device/device_default.cpp
@@ -81,6 +81,20 @@ namespace hw {
dfns();
}
+ bool device_default::set_mode(device_mode mode) {
+ return true;
+ }
+
+ /* ======================================================================= */
+ /* LOCKER */
+ /* ======================================================================= */
+
+ void device_default::lock() { }
+
+ bool device_default::try_lock() { return true; }
+
+ void device_default::unlock() { }
+
/* ======================================================================= */
/* WALLET & ADDRESS */
/* ======================================================================= */
@@ -262,10 +276,6 @@ namespace hw {
return true;
}
- bool device_default::set_signature_mode(unsigned int sig_mode) {
- return true;
- }
-
bool device_default::encrypt_payment_id(crypto::hash8 &payment_id, const crypto::public_key &public_key, const crypto::secret_key &secret_key) {
crypto::key_derivation derivation;
crypto::hash hash;