message: Add network weight fix to use fixed denominator
diff: @@ -111,6 +111,13 @@ double GetPoSKernelPS()
  CBlockIndex* pindex = pindexBestHeader;
  CBlockIndex* pindexPrevStake = NULL;
  + const Consensus::Params& consensusParams = Params().GetConsensus();
  + bool dynamicStakeSpacing = true;
  + if(pindex)
  + {
  + dynamicStakeSpacing = pindex->nHeight < consensusParams.QIP9Height;
  + }
  +
  while (pindex && nStakesHandled < nPoSInterval)
  {
  if (pindex->IsProofOfStake())
  @@ -118,6 +125,7 @@ double GetPoSKernelPS()
  if (pindexPrevStake)
  {
  dStakeKernelsTriedAvg += GetDifficulty(pindexPrevStake) * 4294967296.0;
  + if(dynamicStakeSpacing)
  nStakesTime += pindexPrevStake->nTime - pindex->nTime;
  nStakesHandled++;
  }
  @@ -127,6 +135,12 @@ double GetPoSKernelPS()
  pindex = pindex->pprev;
  }
  + if(!dynamicStakeSpacing)
  + {
  + // Using a fixed denominator reduces the variation spikes
  + nStakesTime = consensusParams.nPowTargetSpacing * nStakesHandled;
  + }
  +
  double result = 0;
  if (nStakesTime)
  