test: Fix inconsistent lock order in wallet_tests/CreateWallet

This commit is contained in:
Hennadii Stepanov
2020-09-20 11:54:58 +03:00
parent cb23fe01c1
commit e1e68b6305
3 changed files with 6 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ const std::map<uint64_t,std::string> WALLET_FLAG_CAVEATS{
static const size_t OUTPUT_GROUP_MAX_ENTRIES = 10;
static RecursiveMutex cs_wallets;
RecursiveMutex 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);