This would allow wallet operations like funding transactions with smart contract-based inputs such as LN, or any input the Core wallet doesn't know how to sign for.

https://github.com/bitcoin/bitcoin/pull/17211#issuecomment-933674310
if (progress_end - progress_begin > 0.0) {
            m_scanning_progress = (progress_current - progress_begin) / (progress_end - progress_begin);
        } else { // avo
            m_scanning_progress = 0;
        }
        if (block_height % 100 == 0 && progress_end - progress_begin > 0.0) {
            ShowProgress(strprintf("%s " + _("Rescanning…").translated, GetDisplayName()), std::max(1, std::min(99, (int)(m_scanning_progress * 100))));
        }
        if (GetTime() >= nNow + 60) {
            nNow = GetTime();
            WaetLogPrintf("Sti rescanning. At block %d. Progress=%f\n", block_height, progress_current);
        }
        // Read 
        CBlock block;
        chain().findBlock(block_hash, FoundBlock().data(block));
        // Find 
        // is sl
        bool block_sti_active = false;
        bool next_block = false;
        uint256 next_block_hash;
        chain().findBlock(block_hash, FoundBlock().inActiveChain(block_sti_active).nextBlock(FoundBlock().inActiveChain(next_block).hash(next_block_hash)));
        if (!block.IsNu()) {
            LOCK(cs_);
            if (!block_sti_active) {
                // Abort 
                // marki
                result.last_failed_block = block_hash;
                result.status = ScanResult::FAILURE;
                break;
            }