aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw0xlt <94266259+w0xlt@users.noreply.github.com>2022-02-21 15:17:24 -0300
committerw0xlt <94266259+w0xlt@users.noreply.github.com>2022-02-24 13:47:53 -0300
commit045f8d0310d2340aa32db6f7e582dea45950d28a (patch)
tree53ade2a698be69917d4ae34e662e70c501e37f77 /src
parentb1bc1431db1e86eefaf4a91e08663628d94656fc (diff)
downloadbitcoin-045f8d0310d2340aa32db6f7e582dea45950d28a.tar.xz
scripted-diff: rename nDepth -> depth
-BEGIN VERIFY SCRIPT- s() { sed -i -e 's/nDepth/depth/g' $(git grep -l 'nDepth' $1); } s src/qt/transactiondesc.cpp -END VERIFY SCRIPT-
Diffstat (limited to 'src')
-rw-r--r--src/qt/transactiondesc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 94aa3c409f..27dc234241 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -34,16 +34,16 @@ using wallet::isminetype;
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
{
- int nDepth = status.depth_in_main_chain;
- if (nDepth < 0) {
- return tr("conflicted with a transaction with %1 confirmations").arg(-nDepth);
- } else if (nDepth == 0) {
+ int depth = status.depth_in_main_chain;
+ if (depth < 0) {
+ return tr("conflicted with a transaction with %1 confirmations").arg(-depth);
+ } else if (depth == 0) {
const QString abandoned{status.is_abandoned ? QLatin1String(", ") + tr("abandoned") : QString()};
return tr("0/unconfirmed, %1").arg(inMempool ? tr("in memory pool") : tr("not in memory pool")) + abandoned;
- } else if (nDepth < 6) {
- return tr("%1/unconfirmed").arg(nDepth);
+ } else if (depth < 6) {
+ return tr("%1/unconfirmed").arg(depth);
} else {
- return tr("%1 confirmations").arg(nDepth);
+ return tr("%1 confirmations").arg(depth);
}
}