3493 | + // chain if they are valid, and no more than a month older (both in time, and in
3494 | + // best equivalent proof of work) than the best header chain we know about.
3495 | send = mi->second->IsValid(BLOCK_VALID_SCRIPTS) && (pindexBestHeader != NULL) &&
3496 | - (mi->second->GetBlockTime() > pindexBestHeader->GetBlockTime() - 30 * 24 * 60 * 60);
3497 | + (mi->second->GetBlockTime() > pindexBestHeader->GetBlockTime() - nOneMonth) &&
3498 | + (GetBlockProofEquivalentTime(*mi->second, *pindexBestHeader, *pindexBestHeader) > nOneMonth);
Is this supposed to be < nOneMonth?
Ugh, yes. This is why code like this needs tests...