aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-06-04 16:54:35 +0900
committerstoffu <stoffu@protonmail.ch>2018-06-21 12:36:17 +0900
commit248310de0666d9c12e6e861043386419da63f3b1 (patch)
tree2e4101062a43ab76c6fcabb54a946d4b4b479e34 /src/common/util.h
parentwallet2: lower default for subaddress lookahead when restoring with hardware (diff)
downloadmonero-248310de0666d9c12e6e861043386419da63f3b1.tar.xz
Move parse_subaddress_lookahead() from simplewallet.cpp to util.cpp
Diffstat (limited to '')
-rw-r--r--src/common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 7caf0e3c5..dc426830b 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -32,6 +32,7 @@
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>
+#include <boost/optional.hpp>
#include <system_error>
#include <csignal>
#include <cstdio>
@@ -214,4 +215,6 @@ namespace tools
bool sha256sum(const std::string &filename, crypto::hash &hash);
bool is_hdd(const char *path);
+
+ boost::optional<std::pair<uint32_t, uint32_t>> parse_subaddress_lookahead(const std::string& str);
}