Skip to content

Commit

Permalink
Disable quorum for grandfathered blocks
Browse files Browse the repository at this point in the history
Research reward checks are disabled before nGrandfather. There is no
reason to update quorum state for grandfathered blocks since nothing
checks that data until after nGrandfather:
  • Loading branch information
cyrossignol committed Oct 15, 2019
1 parent 34c6dc0 commit aed9150
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3955,7 +3955,13 @@ void GridcoinServices()
uiInterface.NotifyBlocksChanged();
}

// Services thread activity
// Research reward checks are disabled before nGrandfather. There is no
// reason to update quorum state for grandfathered blocks since nothing
// checks that data until after nGrandfather:
//
if (pindexBest->nHeight < nGrandfather) {
return;
}

if(IsV9Enabled_Tally(nBestHeight))
{
Expand Down Expand Up @@ -4005,8 +4011,9 @@ void GridcoinServices()
}

//Dont perform the following functions if out of sync
if (pindexBest->nHeight < nGrandfather || OutOfSyncByAge())
if (OutOfSyncByAge()) {
return;
}

//Backup the wallet once per 900 blocks or as specified in config:
int nWBI = GetArg("-walletbackupinterval", 900);
Expand Down

0 comments on commit aed9150

Please sign in to comment.