Skip to content

Commit

Permalink
Fix v11 height condition in ScrapeGetSuperblockContract()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrossignol committed May 30, 2020
1 parent d59991a commit 59400bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scraper/scraper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5002,7 +5002,7 @@ NN::Superblock ScraperGetSuperblockContract(bool bStoreConvergedStats, bool bCon
ConvergedScraperStatsCache.nTime = GetAdjustedTime();
ConvergedScraperStatsCache.Convergence = StructConvergedManifest;

if (IsV11Enabled(nBestHeight)) {
if (IsV11Enabled(nBestHeight + 1)) {
superblock = NN::Superblock::FromConvergence(ConvergedScraperStatsCache);
} else {
superblock = NN::Superblock::FromConvergence(ConvergedScraperStatsCache, 1);
Expand Down

0 comments on commit 59400bf

Please sign in to comment.