fix pr merge conflicts

This commit is contained in:
jc 2018-02-23 08:33:30 -05:00
parent 4031ff02ec
commit 1eb9e2b839
No known key found for this signature in database
GPG Key ID: E87FC0C8A375F3CF
2 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,8 @@ struct Params {
int64_t nPowMaxAdjustUp;
int64_t nPowTargetSpacing;
int nPowDifficultyBombHeight;
int64_t AveragingWindowTimespan(bool isFork = false) const { return nPowAveragingWindow * nPowTargetSpacing / (isFork ? 20 : 1); }
int64_t MinActualTimespan(bool isFork = false) const { return (AveragingWindowTimespan(isFork) * (100 - nPowMaxAdjustUp )) / 100; }
int64_t MaxActualTimespan(bool isFork = false) const { return (AveragingWindowTimespan(isFork) * (100 + nPowMaxAdjustDown)) / 100; }

View File

@ -155,6 +155,7 @@ CBlockTemplate* CreateNewForkBlock(bool& bFileNotFound)
pblock->hashPrevBlock = pindexPrev->GetBlockHash();
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, Params().GetConsensus());
pblock->nVersion = ComputeBlockVersion(pindexPrev, Params().GetConsensus());
CValidationState state;
if (!TestBlockValidity(state, *pblock, pindexPrev, false, false))
@ -728,7 +729,7 @@ void static BitcoinMiner()
LOCK(cs_vNodes);
fvNodesEmpty = vNodes.empty();
}
if (!fvNodesEmpty && !IsInitialBlockDownload())
if (!fvNodesEmpty) // && !IsInitialBlockDownload())
break;
MilliSleep(1000);
} while (true);