add cs_wallet lock on GetInputDarksendRounds
This commit is contained in:
parent
8a3f3428dd
commit
6c7d66f0c1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user