https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
{
    LOCK(cs_wallet);
    int conflictconfirms = (m_last_block_processed_height - conflicting_height + 1) * -1;
    
    
    
    
    if (conflictconfirms >= 0)
        return;
    
    WalletBatch batch(GetDatabase(), false);
    std::set<uint256> todo;
    std::set<uint256> done;
    todo.insert(hashTx);
    while (!todo.empty()) {
        uint256 now = *todo.begin();
        todo.erase(now);
        done.insert(now);
        auto it = mapWallet.find(now);
        assert(it != mapWallet.end());
        CWalletTx& wtx = it->second;
        int currentconfirm = wtx.GetDepthInMainChain();
        if (conflictconfirms < currentconfirm) {