From 85363625d3487c8b2a34384cf890f7227b8e6ba9 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 10 Jul 2021 22:05:04 +0200 Subject: [PATCH] TxInfoDialog: disable inputs for now --- src/dialog/TxInfoDialog.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/dialog/TxInfoDialog.cpp b/src/dialog/TxInfoDialog.cpp index d873530..69576e7 100644 --- a/src/dialog/TxInfoDialog.cpp +++ b/src/dialog/TxInfoDialog.cpp @@ -43,21 +43,21 @@ TxInfoDialog::TxInfoDialog(QSharedPointer ctx, TransactionInfo *txIn } else { ui->btn_rebroadcastTx->hide(); } - - if (txInfo->direction() == TransactionInfo::Direction_Out) { - // TODO: this will not properly represent coinjoin-like transactions. - QVector coins = m_ctx->wallet->coins()->coins_from_txid(m_txid); - QTextCursor c_i = ui->inputs->textCursor(); - QString inputs_str; - for (const auto &coin : coins) { - inputs_str += QString("%1 %2\n").arg(coin->pubKey(), coin->displayAmount()); - } - ui->inputs->setText(inputs_str); - ui->label_inputs->setText(QString("Inputs (%1)").arg(QString::number(coins.size()))); - this->adjustHeight(ui->inputs, coins.size()); - } else { - ui->frameInputs->hide(); - } +// +// if (txInfo->direction() == TransactionInfo::Direction_Out) { +// // TODO: this will not properly represent coinjoin-like transactions. +// QVector coins = m_ctx->wallet->coins()->coins_from_txid(m_txid); +// QTextCursor c_i = ui->inputs->textCursor(); +// QString inputs_str; +// for (const auto &coin : coins) { +// inputs_str += QString("%1 %2\n").arg(coin->pubKey(), coin->displayAmount()); +// } +// ui->inputs->setText(inputs_str); +// ui->label_inputs->setText(QString("Inputs (%1)").arg(QString::number(coins.size()))); +// this->adjustHeight(ui->inputs, coins.size()); +// } else { + ui->frameInputs->hide(); +// } QTextCursor cursor = ui->outputs->textCursor();