Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show All 39 Lines | |||||
const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS{ | const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS{ | ||||
{WALLET_FLAG_AVOID_REUSE, | {WALLET_FLAG_AVOID_REUSE, | ||||
"You need to rescan the blockchain in order to correctly mark used " | "You need to rescan the blockchain in order to correctly mark used " | ||||
"destinations in the past. Until this is done, some destinations may " | "destinations in the past. Until this is done, some destinations may " | ||||
"be considered unused, even if the opposite is the case."}, | "be considered unused, even if the opposite is the case."}, | ||||
}; | }; | ||||
static RecursiveMutex cs_wallets; | RecursiveMutex cs_wallets; | ||||
static std::vector<std::shared_ptr<CWallet>> vpwallets GUARDED_BY(cs_wallets); | static std::vector<std::shared_ptr<CWallet>> vpwallets GUARDED_BY(cs_wallets); | ||||
static std::list<LoadWalletFn> g_load_wallet_fns GUARDED_BY(cs_wallets); | static std::list<LoadWalletFn> g_load_wallet_fns GUARDED_BY(cs_wallets); | ||||
bool AddWalletSetting(interfaces::Chain &chain, | bool AddWalletSetting(interfaces::Chain &chain, | ||||
const std::string &wallet_name) { | const std::string &wallet_name) { | ||||
util::SettingsValue setting_value = chain.getRwSetting("wallet"); | util::SettingsValue setting_value = chain.getRwSetting("wallet"); | ||||
if (!setting_value.isArray()) { | if (!setting_value.isArray()) { | ||||
setting_value.setArray(); | setting_value.setArray(); | ||||
▲ Show 20 Lines • Show All 5,042 Lines • Show Last 20 Lines |