mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-19 14:40:45 +02:00
qt, refactor: remove unused parameters in TransactionDesc::FormatTxStatus()
This commit is contained in:
parent
045f8d0310
commit
ad6adedb46
@ -32,7 +32,7 @@ using wallet::ISMINE_SPENDABLE;
|
|||||||
using wallet::ISMINE_WATCH_ONLY;
|
using wallet::ISMINE_WATCH_ONLY;
|
||||||
using wallet::isminetype;
|
using wallet::isminetype;
|
||||||
|
|
||||||
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
|
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool)
|
||||||
{
|
{
|
||||||
int depth = status.depth_in_main_chain;
|
int depth = status.depth_in_main_chain;
|
||||||
if (depth < 0) {
|
if (depth < 0) {
|
||||||
@ -93,7 +93,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|||||||
CAmount nDebit = wtx.debit;
|
CAmount nDebit = wtx.debit;
|
||||||
CAmount nNet = nCredit - nDebit;
|
CAmount nNet = nCredit - nDebit;
|
||||||
|
|
||||||
strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(wtx, status, inMempool, numBlocks);
|
strHTML += "<b>" + tr("Status") + ":</b> " + FormatTxStatus(status, inMempool);
|
||||||
strHTML += "<br>";
|
strHTML += "<br>";
|
||||||
|
|
||||||
strHTML += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>";
|
strHTML += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>";
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
TransactionDesc() {}
|
TransactionDesc() {}
|
||||||
|
|
||||||
static QString FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks);
|
static QString FormatTxStatus(const interfaces::WalletTxStatus& status, bool inMempool);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|
#endif // BITCOIN_QT_TRANSACTIONDESC_H
|
||||||
|
Loading…
Reference in New Issue
Block a user