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.
```
}
        else {
            chainChildKey.Derive(childKey, hdChain.nExternalChainCounter | BIP32_HARDENED_KEY_LIMIT);
            metadata.hdKeypath = "m/0'/0'/" + std::to_string(hdChain.nExternalChainCounter) + "'";
            metadata.key_origin.path.push_back(0 | BIP32_HARDENED_KEY_LIMIT);
            metadata.key_origin.path.push_back(0 | BIP32_HARDENED_KEY_LIMIT);
            metadata.key_origin.path.push_back(hdChain.nExternalChainCounter | BIP32_HARDENED_KEY_LIMIT);
            hdChain.nExternalChainCounter++;
        }
    } while (HaveKey(childKey.key.GetPubKey().GetID()));
    secret = childKey.key;
    metadata.hd_seed_id = hdChain.seed_id;
    CKeyID master_id = masterKey.key.GetPubKey().GetID();
    std::copy(master_id.begin(), master_id.begin() + 4, metadata.key_origin.fingerprint);
    metadata.has_key_origin = true;
    
    if (!batch.WriteHDChain(hdChain))
        throw std::runtime_error(std::string(__func__) + ": Writing HD chain model failed");
}
bool CWallet::AddKeyPubKeyWithDB(WalletBatch& batch, const CKey& secret, const CPubKey& pubkey)
{
    AssertLockHeld(cs_wallet);
    
    assert(!IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));
    
    
    
    bool needsDB = !encrypted_batch;
    if (needsDB) {
        encrypted_batch = &batch;