Merge pull request #5750 from nuttycom/defensive/scanwallet_nullptr_check

Assert that pindexStart cannot be null in CWallet::ScanForWalletTransactions
This commit is contained in:
sasha 2022-03-25 16:02:05 -07:00 committed by GitHub
commit d10c0553f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4315,6 +4315,7 @@ int CWallet::ScanForWalletTransactions(
bool fUpdate,
bool isInitScan)
{
assert(pindexStart != nullptr);
int ret = 0;
int64_t nNow = GetTime();
const CChainParams& chainParams = Params();