add cs_wallet lock on GetInputDarksendRounds

This commit is contained in:
UdjinM6 2015-07-29 18:06:45 +03:00 committed by Evan Duffield
parent 8a3f3428dd
commit 6c7d66f0c1

View File

@ -919,6 +919,7 @@ int CWallet::GetRealInputDarksendRounds(CTxIn in, int rounds) const
// respect current settings
int CWallet::GetInputDarksendRounds(CTxIn in) const {
LOCK(cs_wallet);
int realDarksendRounds = GetRealInputDarksendRounds(in, 0);
return realDarksendRounds > nDarksendRounds ? nDarksendRounds : realDarksendRounds;
}