https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
nNow = GetTime();
            WalletLogPrintf("Still rescanning. At block %d. Progress=%f\n", block_height, progress_current);
        }
        
        CBlock block;
        chain().findBlock(block_hash, FoundBlock().data(block));
        
        
        bool block_still_active = false;
        bool next_block = false;
        uint256 next_block_hash;
        chain().findBlock(block_hash, FoundBlock().inActiveChain(block_still_active).nextBlock(FoundBlock().inActiveChain(next_block).hash(next_block_hash)));
        if (!block.IsNull()) {
            LOCK(cs_wallet);
            if (!block_still_active) {
                
                
                result.last_failed_block = block_hash;
                result.status = ScanResult::FAILURE;
                break;
            }
            for (size_t posInBlock = 0; posInBlock < block.vtx.size(); ++posInBlock) {
                SyncTransaction(block.vtx[posInBlock], {CWalletTx::Status::CONFIRMED, block_height, block_hash, (int)posInBlock}, fUpdate);
            }
            
            result.last_scanned_block = block_hash;
            result.last_scanned_height = block_height;
        } else {
            
            result.last_failed_block = block_hash;