Skip to content

Commit

Permalink
Added a lock before we call GetTxStakeAmount()
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed Jul 13, 2019
1 parent 9f55518 commit 1ca42fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3215,6 +3215,9 @@ int64_t GetFirstStakeTime()
// return int = Number of Wallet's elements analyzed
int GetsStakeSubTotal(vStakePeriodRange_T& aRange)
{
// Lock cs_main before we try to call GetTxStakeAmount
LOCK(cs_main);

int nElement = 0;
int64_t nAmount = 0;

Expand Down

0 comments on commit 1ca42fb

Please sign in to comment.