Skip to content

Commit 045f8d0

Browse files
committed
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-
1 parent b1bc143 commit 045f8d0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/qt/transactiondesc.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ using wallet::isminetype;
3434

3535
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
3636
{
37-
int nDepth = status.depth_in_main_chain;
38-
if (nDepth < 0) {
39-
return tr("conflicted with a transaction with %1 confirmations").arg(-nDepth);
40-
} else if (nDepth == 0) {
37+
int depth = status.depth_in_main_chain;
38+
if (depth < 0) {
39+
return tr("conflicted with a transaction with %1 confirmations").arg(-depth);
40+
} else if (depth == 0) {
4141
const QString abandoned{status.is_abandoned ? QLatin1String(", ") + tr("abandoned") : QString()};
4242
return tr("0/unconfirmed, %1").arg(inMempool ? tr("in memory pool") : tr("not in memory pool")) + abandoned;
43-
} else if (nDepth < 6) {
44-
return tr("%1/unconfirmed").arg(nDepth);
43+
} else if (depth < 6) {
44+
return tr("%1/unconfirmed").arg(depth);
4545
} else {
46-
return tr("%1 confirmations").arg(nDepth);
46+
return tr("%1 confirmations").arg(depth);
4747
}
4848
}
4949

0 commit comments

Comments
 (0)