Skip to content

Commit 6b4c503

Browse files
committed
[Trivial] Log current/feetx height in CheckCollateralConfs
1 parent 6ad29bf commit 6b4c503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/masternode-budget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ bool CheckCollateralConfs(const uint256& nTxCollateralHash, int nCurrentHeight,
106106
const int nConf = GetIXConfirmations(nTxCollateralHash) + nCurrentHeight - nProposalHeight + 1;
107107

108108
if (nConf < nRequiredConfs) {
109-
strError = strprintf("Collateral requires at least %d confirmations - %d confirmations", nRequiredConfs, nConf);
109+
strError = strprintf("Collateral requires at least %d confirmations - %d confirmations "
110+
"(current height: %d, fee tx height: %d)", nRequiredConfs, nConf, nCurrentHeight, nProposalHeight);
110111
LogPrint(BCLog::MNBUDGET,"%s: %s\n", __func__, strError);
111112
return false;
112113
}

0 commit comments

Comments
 (0)