|
|
@ -1111,7 +1111,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa |
|
|
|
if (pfMissingInputs) |
|
|
|
*pfMissingInputs = false; |
|
|
|
auto verifier = libzcash::ProofVerifier::Strict(); |
|
|
|
if ( komodo_validate_interest(tx,chainActive.Tip()->nHeight+1,chainActive.Tip()->GetMedianTimePast() + 777) < 0 ) |
|
|
|
if ( komodo_validate_interest(tx,chainActive.Tip()->nHeight+1,chainActive.Tip()->GetMedianTimePast() + 777,3) < 0 ) |
|
|
|
{ |
|
|
|
fprintf(stderr,"AcceptToMemoryPool komodo_validate_interest failure\n"); |
|
|
|
return error("AcceptToMemoryPool: komodo_validate_interest failed"); |
|
|
@ -3227,7 +3227,7 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat |
|
|
|
// Check transactions
|
|
|
|
BOOST_FOREACH(const CTransaction& tx, block.vtx) |
|
|
|
{ |
|
|
|
if ( komodo_validate_interest(tx,komodo_block2height((CBlock *)&block),block.nTime) < 0 ) |
|
|
|
if ( komodo_validate_interest(tx,komodo_block2height((CBlock *)&block),block.nTime,1) < 0 ) |
|
|
|
return error("CheckBlock: komodo_validate_interest failed"); |
|
|
|
if (!CheckTransaction(tx, state, verifier)) |
|
|
|
return error("CheckBlock(): CheckTransaction failed"); |
|
|
|