From 637a93ccfbd75a0cacd63273f35d21fec57d4bcc Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 21 Dec 2016 15:38:44 +0400 Subject: [PATCH] bug: should use txidCollateral to calculate confirmations (#1188) --- src/masternode-budget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masternode-budget.cpp b/src/masternode-budget.cpp index eee86beb5d..829b056810 100644 --- a/src/masternode-budget.cpp +++ b/src/masternode-budget.cpp @@ -180,7 +180,7 @@ void CBudgetManager::SubmitFinalBudget() txidCollateral = mapCollateralTxids[tempBudget.GetHash()]; } - int conf = GetIXConfirmations(tx.GetHash()); + int conf = GetIXConfirmations(txidCollateral); CTransaction txCollateral; uint256 nBlockHash;