enforcing will reject blocks but not disconnect

This commit is contained in:
Evan Duffield 2014-07-04 07:20:42 -07:00
parent aa1db4dce7
commit 9ac30e4b66
2 changed files with 1 additions and 2 deletions

View File

@ -2670,7 +2670,7 @@ bool CBlock::CheckBlock(CValidationState &state, bool fCheckPOW, bool fCheckMerk
if(!foundPaymentPayee || !foundPaymentAmount ) {
printf("CheckBlock() : Couldn't find masternode payment. Found Amount %d Found Payee %d \n", (int)foundPaymentAmount, (int)foundPaymentPayee);
if(EnforceMasternodePayments) return state.DoS(100, error("CheckBlock() : Couldn't find masternode payment"));
if(EnforceMasternodePayments) return state.DoS(0, error("CheckBlock() : Couldn't find masternode payment"));
}
}

View File

@ -102,5 +102,4 @@ BOOST_AUTO_TEST_CASE(darksend_masternode_search_by_vin)
BOOST_CHECK(darkSendPool.GetMasternodeByVin(testVin2) == 1);
}
BOOST_AUTO_TEST_SUITE_END()