https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
{
    
    
    
    int start_height = 0;
    uint256 start_block;
    bool start = chain().findFirstBlockWithTimeAndHeight(startTime - TIMESTAMP_WINDOW, 0, FoundBlock().hash(start_block).height(start_height));
    WalletLogPrintf("%s: Rescanning last %i blocks\n", __func__, start ? WITH_LOCK(cs_wallet, return GetLastBlockHeight()) - start_height + 1 : 0);
    if (start) {
        
        ScanResult result = ScanForWalletTransactions(start_block, start_height, {} , reserver, update);