Browse Source

Merge pull request #338 from VerusCoin/dev

Dev
pull/433/head v0.7.3-8
Asher Dawes 3 years ago
committed by GitHub
parent
commit
942b01b87b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/pow.cpp

8
src/pow.cpp

@ -148,8 +148,7 @@ unsigned int lwmaCalculateNextWorkRequired(const CBlockIndex* pindexLast, const
uint32_t height = pindexLast->GetHeight() + 1;
if (CConstVerusSolutionVector::activationHeight.ActiveVersion(height) >= CConstVerusSolutionVector::activationHeight.SOLUTION_VERUSV2)
{
int32_t pbaasAdjust = !_IsVerusActive() && height < params.nPowAveragingWindow ? 4 : 0;
targetShift = (VERUSHASH2_SHIFT - pbaasAdjust);
targetShift = VERUSHASH2_SHIFT;
bnLimit <<= targetShift;
}
@ -178,6 +177,11 @@ unsigned int lwmaCalculateNextWorkRequired(const CBlockIndex* pindexLast, const
// Check we have enough blocks
if (!pindexFirst)
{
if (!_IsVerusActive() && ASSETCHAINS_ALGO == ASSETCHAINS_VERUSHASH)
{
// startup 16 times harder on PBaaS chains
bnLimit = bnLimit >> 4;
}
return bnLimit.GetCompact();
}

Loading…
Cancel
Save