https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
{
    LOCK(cs_wallet);
    WalletLogPrintf("CommitTransaction:\n%s", tx->ToString()); 
    
    
    AddToWallet(tx, {}, [&](CWalletTx& wtx, bool new_tx) {
        CHECK_NONFATAL(wtx.mapValue.empty());
        CHECK_NONFATAL(wtx.vOrderForm.empty());
        wtx.mapValue = std::move(mapValue);
        wtx.vOrderForm = std::move(orderForm);
        wtx.fTimeReceivedIsTxTime = true;
        wtx.fFromMe = true;
        return true;
    });
    
    for (const CTxIn& txin : tx->vin) {
        CWalletTx &coin = mapWallet.at(txin.prevout.hash);
        coin.MarkDirty();
        NotifyTransactionChanged(this, coin.GetHash(), CT_UPDATED);
    }
    
    
    CWalletTx& wtx = mapWallet.at(tx->GetHash());
    if (!fBroadcastTransactions) {
        
        return;
    }
    std::string err_string;