Skip to content

Commit

Permalink
Fix data race
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Mar 26, 2024
1 parent efaa521 commit 35c9b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ void CWallet::TransactionRemovedFromMempool(const CTransactionRef &ptx, MemPoolR
void CWallet::BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex *pindex)
{
{
LOCK(cs_wallet);
LOCK2(cs_main, cs_wallet);

m_last_block_processed = pindex->GetBlockHash();
m_last_block_processed_time = pindex->GetBlockTime();
Expand Down

0 comments on commit 35c9b1e

Please sign in to comment.