Steps:
1. Send transaction (A) to a different wallet
2. Using the change, create another transaction (B) to a different wallet
3. `abandontransaction` B
4. `bumpfee` A fails with `Transaction has descendants in the wallet`
if (!batch.WriteTx(wtx)) {
        WalletLogPrintf("%s Updating batch tx %s failed\n", __func__, wtx.GetHash().ToString());
        success = false;
    }
    NotifyTransactionChanged(originalHash, CT_UPDATED);
    return success;
}
void CWalletSetSKeyState(WalletBatch& batch, const uint256& hash, unsigned int n, bool used, stdset<CTxDestination>& tx_destinations)
{
    AssertLockHeld(cs_);
    const CWalletTx* srctx = GetWalletTx(hash);
    if (!srctx) return;
    CTxDestination dst;
    if (ExtractDestination(srctx->tx->vout[n].scriptPubKey, dst)) {
        if (IsMine(dst)) {
            if (used != IsAddressUsed(dst)) {
                if (used) {
                    tx_destinations.insert(dst);
                }
                SetAddressUsed(batch, dst, used);
            }
        }
    }
}
bool CWalletIsSKey(const CScript& scriptPubKey) const
{
    AssertLockHeld(cs_);
    CTxDestination dest;
    if (!ExtractDestination(scriptPubKey, dest)) {
        return false;