We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e48323d + d8743b7 commit a0267b9Copy full SHA for a0267b9
src/gridcoin/contract/contract.cpp
@@ -413,7 +413,12 @@ Contract GRC::MakeLegacyContract(
413
void GRC::ReplayContracts(const CBlockIndex* pindex)
414
{
415
static BlockFinder blockFinder;
416
- pindex = blockFinder.FindByMinTime(pindex->nTime - Beacon::MAX_AGE);
+
417
+ // TODO:
418
+ // We have to implement a contract cache to solve the contract replay
419
+ // lookback scope issues for beacons. Until then use a lookback of
420
+ // double the max beacon age.
421
+ pindex = blockFinder.FindByMinTime(pindex->nTime - Beacon::MAX_AGE * 2);
422
423
LogPrint(BCLog::LogFlags::CONTRACT,
424
"Replaying contracts from block %" PRId64 "...", pindex->nHeight);
0 commit comments