CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW,false,"coinbase transaction transaction has the wrong unlock time="<<b.miner_tx.unlock_time<<", expected "<<height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW);
if(hf_version>=HF_VERSION_FIXED_UNLOCK){
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="<<b.miner_tx.unlock_time<<", expected "<<height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V2);
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+unlock_window,false,"coinbase transaction transaction has the wrong unlock time="<<b.miner_tx.unlock_time<<", expected "<<height+unlock_window);
}else{
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW,false,"coinbase transaction transaction has the wrong unlock time="<<b.miner_tx.unlock_time<<", expected "<<height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW);