mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
enforcing will reject blocks but not disconnect
This commit is contained in:
parent
aa1db4dce7
commit
9ac30e4b66
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -102,5 +102,4 @@ BOOST_AUTO_TEST_CASE(darksend_masternode_search_by_vin)
|
||||
BOOST_CHECK(darkSendPool.GetMasternodeByVin(testVin2) == 1);
|
||||
}
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user