// To calculate unlock window, get the block hash at height-1337, convert the
// first 3 characters from hexadecimal to decimal, multiply by 2, and then add 288.
// Unlock minimum 1 day (288 blocks), maximum is ~29 days ((4095*2)+288 = 8478 blocks)
// unlock time = unlock_window + height
if(hf_version>=HF_VERSION_DYNAMIC_UNLOCK)
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="
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW,false,"coinbase transaction transaction has the wrong unlock time="