From 8661518f6648c0eaaab3284c94bca9f31c996fb1 Mon Sep 17 00:00:00 2001 From: tri Date: Thu, 4 Apr 2024 15:35:21 -0700 Subject: [PATCH] adding a on testnet fork to correct quorum size when node is at 600 count --- configure.ac | 4 ++-- src/chainparams.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 04b64e263..9f425ccff 100644 --- a/configure.ac +++ b/configure.ac @@ -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]]) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index b61c7cbba..4660a4f8c 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -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 @@ -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;