Skip to content

Commit bfb491e

Browse files
presstabFuzzbawls
authored andcommitted
Correct confirmation count on qt transaction records.
1 parent 413638c commit bfb491e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/transactionrecord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void TransactionRecord::updateStatus(const CWalletTx& wtx)
342342
//status.countsForBalance = wtx.IsTrusted() && !(wtx.GetBlocksToMaturity() > 0);
343343
status.depth = wtx.GetDepthInMainChain();
344344
if (IsZPIVType(type)) {
345-
status.depth = pindex ? chainActive.Height() - pindex->nHeight : 0;
345+
status.depth = pindex ? chainActive.Height() - pindex->nHeight + 1: 0;
346346
}
347347

348348
//Determine the depth of the block

0 commit comments

Comments
 (0)