MWARNING("Coinbase transaction has the wrong unlock time, "<<"Unlock: "<<b.miner_tx.unlock_time<<", Expected: "<<height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3);
returnfalse;
}else{
LOG_PRINT_L1("Miner signature is good");
LOG_PRINT_L1("Vote: "<<b.vote);
// sanity checks
if(b.miner_tx.vout.size()!=1)
{
MWARNING("Only 1 output in miner transaction allowed");
MWARNING("Coinbase transaction has the wrong unlock time, "<<"Unlock: "<<b.miner_tx.unlock_time<<", Expected: "<<height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3_SOLO);
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V2,false,"coinbase transaction transaction has the wrong unlock time="
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V2,false,"Coinbase transaction has the wrong unlock time="
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW,false,"coinbase transaction transaction has the wrong unlock time="
}
if(hf_version<HF_VERSION_DYNAMIC_UNLOCK)
{
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW,false,"Coinbase transaction has the wrong unlock time="