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.
```
}
    if (tip_height && *tip_height != rescan_height)
    {
        
        
        
        if (chain.havePruned()) {
            
            
            
            int block_height = *tip_height;
            while (block_height > 0 && locked_chain->haveBlockOnDisk(block_height - 1) && rescan_height != block_height) {
                --block_height;
            }
            if (rescan_height != block_height) {
                chain.initError(_("Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)").translated);
                return nullptr;
            }
        }
        chain.initMessage(_("Rescanning...").translated);
        walletInstance->WalletLogPrintf("Rescanning last %i blocks (from block %i)...\n", *tip_height - rescan_height, rescan_height);
        
        
        if (walletInstance->nTimeFirstKey) {
            if (Optional<int> first_block = locked_chain->findFirstBlockWithTimeAndHeight(walletInstance->nTimeFirstKey - TIMESTAMP_WINDOW, rescan_height, nullptr)) {
                rescan_height = *first_block;
            }
        }
        {
            WalletRescanReserver reserver(walletInstance.get());