Long unlock window #449

Closed
_xxfedexx_ wants to merge 5 commits from unlock into dev

This represents an effort against centralized mining pools in case wownero switches back to pool mining to allow p2pool.

This represents an effort against centralized mining pools in case wownero switches back to pool mining to allow p2pool.
_xxfedexx_ added 3 commits 1 year ago
wowario reviewed 1 year ago
#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
wowario commented 1 year ago
Owner

rename to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3 and move above V2

change 262800 to 288*30*6

rename to `CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3` and move above V2 change `262800` to `288*30*6`
wowario reviewed 1 year ago
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="
wowario commented 1 year ago
Owner

change to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3

change to `CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3`
wowario reviewed 1 year ago
{
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)
wowario commented 1 year ago
Owner

change to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3

change to `CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3`
wowario marked this conversation as resolved
wowario reviewed 1 year ago
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;
wowario commented 1 year ago
Owner

change to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3

change to `CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW_V3`
wowario reviewed 1 year ago
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)
wowario commented 1 year ago
Owner

hard_fork_version < HF_VERSION_LONG_UNLOCK && hard_fork_version >= HF_VERSION_FIXED_UNLOCK

`hard_fork_version < HF_VERSION_LONG_UNLOCK && hard_fork_version >= HF_VERSION_FIXED_UNLOCK`
_xxfedexx_ added 1 commit 1 year ago
_xxfedexx_ added 1 commit 1 year ago
_xxfedexx_ closed this pull request 1 year ago
This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#449
Loading…
There is no content yet.