MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has invalid ring size ("<<(mixin+1)<<"), it should be 11");
MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has invalid ring size ("<<(min_actual_mixin +1)<<"), it should be 11");
tvc.m_low_mixin=true;
returnfalse;
}
if(mixin<min_mixin)
if(min_actual_mixin <min_mixin)
{
if(n_unmixable==0)
{
MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has too low ring size ("<<(mixin +1)<<"), and no unmixable inputs");
MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has too low ring size ("<<(min_actual_mixin +1)<<"), and no unmixable inputs");
tvc.m_low_mixin=true;
returnfalse;
}
if(n_mixable>1)
{
MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has too low ring size ("<<(mixin +1)<<"), and more than one mixable input with unmixable inputs");
MERROR_VER("Tx "<<get_transaction_hash(tx)<<" has too low ring size ("<<(min_actual_mixin +1)<<"), and more than one mixable input with unmixable inputs");
MERROR_VER("Block with id: "<<id<<std::endl<<"has old version: "<<(unsigned)bl.major_version<<std::endl<<"current: "<<(unsigned)m_hardfork->get_current_version());
MERROR_VER("Block with id: "<<id<<std::endl<<"has old version: "<<(unsigned)bl.major_version<<std::endl<<"current: "<<(unsigned)hf_version);
@ -133,6 +133,7 @@ int main(int argc, char* argv[])
GENERATE_AND_PLAY(gen_block_has_invalid_tx);
GENERATE_AND_PLAY(gen_block_is_too_big);
GENERATE_AND_PLAY(gen_block_invalid_binary_format);// Takes up to 3 hours, if CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW == 500, up to 30 minutes, if CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW == 10