Skip to content

Commit

Permalink
[Core] ReprocessBlocks: adjust to PIVX blocktime
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Sep 23, 2019
1 parent 50bfe70 commit 8f6d6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3774,7 +3774,7 @@ void ReprocessBlocks(int nBlocks)
std::map<uint256, int64_t>::iterator it = mapRejectedBlocks.begin();
while (it != mapRejectedBlocks.end()) {
//use a window twice as large as is usual for the nBlocks we want to reset
if ((*it).second > GetTime() - (nBlocks * 60 * 5)) {
if ((*it).second > GetTime() - (nBlocks * Params().TargetSpacing() * 2)) {
BlockMap::iterator mi = mapBlockIndex.find((*it).first);
if (mi != mapBlockIndex.end() && (*mi).second) {
LOCK(cs_main);
Expand Down

0 comments on commit 8f6d6e1

Please sign in to comment.