Do not sign blocks with invalid timestamps (resolves #341)