Skip to content

Commit

Permalink
adding a on testnet fork to correct quorum size when node is at 600 c…
Browse files Browse the repository at this point in the history
…ount
  • Loading branch information
npq7721 committed Apr 4, 2024
1 parent 77429a4 commit 8661518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 3)
define(_CLIENT_VERSION_REVISION, 17)
define(_CLIENT_VERSION_BUILD, 05)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_CLIENT_VERSION_BUILD, 06)
define(_CLIENT_VERSION_IS_RELEASE, false)
define(_COPYRIGHT_YEAR, 2022)
define(_COPYRIGHT_HOLDERS,[The %s developers])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Raptoreum Core]])
Expand Down
5 changes: 3 additions & 2 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ class CTestNetParams : public CChainParams {
};

chainTxData = ChainTxData{
1, // * UNIX timestamp of last known number of transactions (Block 213054)
1711078237, // * UNIX timestamp of last known number of transactions (Block 213054)
0, // * total number of transactions between genesis and that timestamp
// (the tx=... number in the SetBestChain debug.log lines)
0.01 // * estimated number of transactions per second after that timestamp
Expand Down Expand Up @@ -1189,7 +1189,8 @@ void CChainParams::UpdateLLMQParams(size_t totalMnCount, int height, bool lowLLM
consensus.llmqs[Consensus::LLMQ_50_60] = llmq10_60;
consensus.llmqs[Consensus::LLMQ_400_60] = llmq20_60;
consensus.llmqs[Consensus::LLMQ_400_85] = llmq20_85;
} else if((totalMnCount < 4000 && isTestNet) || (totalMnCount < 600 && !isTestNet)) {
} else if((((height >= 21400 && totalMnCount < 600) || (height < 21400 && totalMnCount < 4000)) && isTestNet)
|| (totalMnCount < 600 && !isTestNet)) {
consensus.llmqs[Consensus::LLMQ_50_60] = llmq50_60;
consensus.llmqs[Consensus::LLMQ_400_60] = llmq40_60;
consensus.llmqs[Consensus::LLMQ_400_85] = llmq40_85;
Expand Down

0 comments on commit 8661518

Please sign in to comment.