Skip to content

Commit

Permalink
Set m_last_block_processed to nullptr in SetNull()
Browse files Browse the repository at this point in the history
Prior to this commit the non-static class member "m_last_block_processed"
was not initialized in this constructor nor in any functions that it calls.

m_last_block_processed was introduced in 5ee3172
(part of PR bitcoin#10286) which was merged into master a couple of days ago.
  • Loading branch information
practicalswift committed Nov 22, 2017
1 parent 5ea932a commit a256e6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

typedef CWallet* CWalletRef;
extern std::vector<CWalletRef> vpwallets;
extern CCriticalSection cs_main;

/**
* Settings
Expand Down Expand Up @@ -803,6 +804,10 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
nRelockTime = 0;
fAbortRescan = false;
fScanningWallet = false;
{
LOCK(cs_main);
m_last_block_processed = nullptr;
}
}

std::map<uint256, CWalletTx> mapWallet;
Expand Down

0 comments on commit a256e6a

Please sign in to comment.