Skip to content

Commit

Permalink
Setting the mainnet params (#1074)
Browse files Browse the repository at this point in the history
* Setting the mainnet params
  • Loading branch information
a-bezrukov authored Sep 30, 2021
1 parent 27407b3 commit aa9cf80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,12 @@ class CMainParams : public CChainParams {
consensus.llmqForInstantSend = Consensus::LLMQ_50_60;
consensus.nInstantSendConfirmationsRequired = 2;
consensus.nInstantSendKeepLock = 24;
consensus.nInstantSendBlockFilteringStartHeight = 400000;
consensus.nInstantSendBlockFilteringStartHeight = 421150; // Approx Nov 2 2021 06:00:00 GMT+0000

consensus.nMTPSwitchTime = SWITCH_TO_MTP_BLOCK_HEADER;
consensus.nMTPStartBlock = 117564;
consensus.nMTPFiveMinutesStartBlock = SWITCH_TO_MTP_5MIN_BLOCK;

consensus.nPPSwitchTime = SWITCH_PROGPOW_BLOCK_HEADER;
assert(consensus.nMTPSwitchTime < consensus.nPPSwitchTime && "PP Switch time must be after MTP");

consensus.nDifficultyAdjustStartBlock = 0;
consensus.nFixedDifficulty = 0x2000ffff;
consensus.nPowTargetSpacingMTP = 5*60;
Expand Down Expand Up @@ -435,8 +432,8 @@ class CMainParams : public CChainParams {
consensus.nLelantusV3PayloadStartBlock = 401580;

// ProgPow
consensus.nPPSwitchTime = INT_MAX;
consensus.nInitialPPDifficulty = 0x1d016e81; // 10MH/s
consensus.nPPSwitchTime = 1635228000; // Tue Oct 26 2021 06:00:00 GMT+0000
consensus.nInitialPPDifficulty = 0x1b1774cd; // 40GH/s
}
virtual bool SkipUndoForBlock(int nHeight) const
{
Expand Down
2 changes: 0 additions & 2 deletions src/firo_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ static const int64_t DUST_HARD_LIMIT = 1000; // 0.00001 FIRO mininput
#define SWITCH_TO_MTP_BLOCK_HEADER 1544443200 // 2018 December 10th 12:00 UTC
#define SWITCH_TO_MTP_5MIN_BLOCK 118600

#define SWITCH_PROGPOW_BLOCK_HEADER 1617678362 // TODO set real switch time (actual is 2021 April 16th)

// Number of zerocoin spends allowed per block and per transaction
#define ZC_SPEND_LIMIT 5

Expand Down

0 comments on commit aa9cf80

Please sign in to comment.