TestBlockValidity function for CBlock proposals (used by CreateNewBlock)