Add compile time checking for all cs_wallet runtime locking assertions

This commit is contained in:
practicalswift
2018-04-25 23:16:16 +02:00
parent ea7d6553bc
commit 66b0b1b2a6
4 changed files with 37 additions and 37 deletions

View File

@@ -248,7 +248,7 @@ public:
static bool
ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
CWalletScanState &wss, std::string& strType, std::string& strErr)
CWalletScanState &wss, std::string& strType, std::string& strErr) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)
{
try {
// Unserialize