This pull request is a minimal step in the direction of merging #2124.
The idea is to merge things incrementally rather than all at once.
Automatic sanity-testing: FAILED BUILD/TEST, see http://jenkins.bluematt.me/pull-tester/74c341604961ea9611a6c024c0bdecb573f2361a for binaries and test log.
This could happen for one of several reasons:
If you believe this to be in error, please ping BlueMatt on freenode or TheBlueMatt here.
76+ {
77+ strErrors << _("Wallet name may only contain letters, numbers, and underscores.");
78+ return false;
79+ }
80+
81+ ENTER_CRITICAL_SECTION(cs_WalletManager);
19+
20+vector<string> GetFilesAtPath(const boost::filesystem::path& _path, unsigned int flags)
21+{
22+ vector<string> vstrFiles;
23+ if (!boost::filesystem::exists(_path))
24+ throw runtime_error("Path does not exist.");
41+ if (((flags & file_option_flags::REGULAR_FILES) && boost::filesystem::is_regular_file(pFile)) ||
42+ ((flags & file_option_flags::DIRECTORIES) && boost::filesystem::is_directory(pFile)))
43+#if defined (BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION == 3
44+ vstrFiles.push_back(pFile.filename().string());
45+#else
46+ vstrFiles.push_back(pFile.filename());
16+ */
17+typedef std::map<std::string, boost::shared_ptr<CWallet> > wallet_map;
18+class CWalletManager
19+{
20+protected:
21+ static const boost::regex WALLET_NAME_REGEX;