CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG,false,"coinbase transaction transaction has the wrong unlock time="
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time==height+CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG,false,"coinbase transaction transaction has the wrong unlock time="
This represents an effort against centralized mining pools in case wownero switches back to pool mining to allow p2pool.
#define CRYPTONOTE_PUBLIC_ADDRESS_TEXTBLOB_VER 0
#define CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V2 288
#define CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW 60
#define CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG 262800 // 6 months
rename to
CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3
and move above V2change
262800
to288*30*6
if (hf_version >= HF_VERSION_FIXED_UNLOCK)
if (hf_version >= HF_VERSION_LONG_UNLOCK)
{
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time == height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG, false, "coinbase transaction transaction has the wrong unlock time="
change to
CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3
{
CHECK_AND_ASSERT_MES(b.miner_tx.unlock_time == height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG, false, "coinbase transaction transaction has the wrong unlock time="
<< b.miner_tx.unlock_time << ", expected " << height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG);
} else if (hf_version >= HF_VERSION_FIXED_UNLOCK)
change to
CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3
if (hard_fork_version >= HF_VERSION_FIXED_UNLOCK)
if (hard_fork_version >= HF_VERSION_LONG_UNLOCK)
{
tx.unlock_time = height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG;
change to
CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3
if (hard_fork_version >= HF_VERSION_LONG_UNLOCK)
{
tx.unlock_time = height + CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_LONG;
} else if (hard_fork_version >= HF_VERSION_FIXED_UNLOCK)
hard_fork_version < HF_VERSION_LONG_UNLOCK && hard_fork_version >= HF_VERSION_FIXED_UNLOCK