A call to `removeprunedfunds` does not update the transaction list in the GUI, and trying to access the info of a deleted transaction will result in a segfault.

```bash
(lldb) run
Process 4859 launched: '/Users/michael/github/bitcoin/src/qt/bitcoin-qt' (x86_64)
2019-09-24 15:41:53.763094+0800 bitcoin-qt[4859:390268] MessageTracer: Falling back to default whitelist
Process 4859 stopped
* thread #1, name = 'bitcoin-main', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x34)
    frame #0: 0x00000001001c9bf6 bitcoin-qt`TransactionDesc::FormatTxStatus(wtx=0x00007ffeefbfc0e0, status=0x00007ffeefbfc0c0, inMempool=false, numBlocks=1) at transactiondesc.cpp:33:31
   30  	{
   31  	    if (!status.is_final)
   32  	    {
-> 33  	        if (wtx.tx->nLockTime < LOCKTIME_THRESHOLD)
   34  	            return tr("Open for %n more block(s)", "", wtx.tx->nLockTime - numBlocks);
   35  	        else
   36  	            return tr("Open until %1").arg(GUIUtil::dateTimeStr(wtx.tx->nLockTime));
Target 0: (bitcoin-qt) stopped.
```
{
    int64_t nNow = GetTime();
    int64_t start_time = GetTimeMillis();
    assert(reserver.isReserved());
    uint256 block_hash = start_block;
    ScanResult result;
    WalletLogPrintf("Rescan started from block %s...\n", start_block.ToString());
    fAbortRescan = false;
    ShowProgress(strprintf("%s " + _("Rescanning...").translated, GetDisplayName()), 0); 
    uint256 tip_hash;
    
    Optional<int> block_height = MakeOptional(false, int());
    double progress_begin;
    double progress_end;
    {
        auto locked_chain = chain().lock();
        if (Optional<int> tip_height = locked_chain->getHeight()) {
            tip_hash = locked_chain->getBlockHash(*tip_height);
        }
        block_height = locked_chain->getBlockHeight(block_hash);
        progress_begin = chain().guessVerificationProgress(block_hash);
        progress_end = chain().guessVerificationProgress(stop_block.IsNull() ? tip_hash : stop_block);
    }
    double progress_current = progress_begin;
    while (block_height && !fAbortRescan && !chain().shutdownRequested()) {
        m_scanning_progress = (progress_current - progress_begin) / (progress_end - progress_begin);