Skip to content

Commit a65d61a

Browse files
Mrs-XFuzzbawls
authored andcommitted
[Budget] Fix 'Couldn't find opReturn' error 1
1 parent 0ea334c commit a65d61a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/masternode-budget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ void CBudgetManager::NewBlock()
10121012
while (it5 != vecImmatureFinalizedBudgets.end()) {
10131013
std::string strError = "";
10141014
int nConf = 0;
1015-
if (!IsBudgetCollateralValid((*it5).nFeeTXHash, (*it5).GetHash(), strError, (*it5).nTime, nConf)) {
1015+
if (!IsBudgetCollateralValid((*it5).nFeeTXHash, (*it5).GetHash(), strError, (*it5).nTime, nConf, true)) {
10161016
++it5;
10171017
continue;
10181018
}
@@ -1145,8 +1145,8 @@ void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
11451145

11461146
std::string strError = "";
11471147
int nConf = 0;
1148-
if (!IsBudgetCollateralValid(finalizedBudgetBroadcast.nFeeTXHash, finalizedBudgetBroadcast.GetHash(), strError, finalizedBudgetBroadcast.nTime, nConf)) {
1149-
LogPrint("mnbudget","Finalized Budget FeeTX is not valid - %s - %s\n", finalizedBudgetBroadcast.nFeeTXHash.ToString(), strError);
1148+
if (!IsBudgetCollateralValid(finalizedBudgetBroadcast.nFeeTXHash, finalizedBudgetBroadcast.GetHash(), strError, finalizedBudgetBroadcast.nTime, nConf, true)) {
1149+
LogPrint("mnbudget","fbs - Finalized Budget FeeTX is not valid - %s - %s\n", finalizedBudgetBroadcast.nFeeTXHash.ToString(), strError);
11501150

11511151
if (nConf >= 1) vecImmatureFinalizedBudgets.push_back(finalizedBudgetBroadcast);
11521152
return;

0 commit comments

Comments
 (0)