mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
small change
This commit is contained in:
parent
837e63c03f
commit
068ef5e136
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ public:
|
|||
bool state = false;
|
||||
std::shared_lock<std::shared_mutex> lock{send_funds_l}; //because SendFunds requires 3 locking operations
|
||||
users.modify_if(a_name, [&state, amount, &attempt](User &a) {
|
||||
if (state = (a.balance >= amount) && (a.password == XXH64(attempt.data(), attempt.size(), 0)), state)
|
||||
if (state = (a.balance >= amount) && (a.password == XXH64(attempt.data(), attempt.size(), 0)))
|
||||
{
|
||||
a.balance -= amount;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue