add params to chainparams.cpp

This commit is contained in:
NotRin7
2025-11-24 00:03:44 +01:00
parent a3ca53a380
commit b20544c499
4 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
#include <pow.h>
#include <chainparams.h>
#include <arith_uint256.h>
#include <chain.h>
#include <primitives/block.h>
@@ -29,7 +30,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
return LwmaCalculateNextWorkRequired(pindexLast, params);
// Palladium: Hard Fork at 350,000 for fast difficulty adjustment
if (pindexLast->nHeight + 1 >= 340000) {
if (pindexLast->nHeight + 1 >= params.nResilienceForkHeight) {
int64_t nIntervalNew = 60;
if ((pindexLast->nHeight + 1) % nIntervalNew != 0)
return pindexLast->nBits;