mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
qt, refactor: remove unused parameters in TransactionDesc::FormatTxStatus()
This commit is contained in:
parent
045f8d0310
commit
ad6adedb46
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ using wallet::ISMINE_SPENDABLE;
|
|||
using wallet::ISMINE_WATCH_ONLY;
|
||||
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;
|
||||
if (depth < 0) {
|
||||
|
@ -93,7 +93,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|||
CAmount nDebit = wtx.debit;
|
||||
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 += "<b>" + tr("Date") + ":</b> " + (nTime ? GUIUtil::dateTimeStr(nTime) : "") + "<br>";
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
private:
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue