From 59400bf2f11660e7c6f80d0c26ac754ca0205faf Mon Sep 17 00:00:00 2001 From: Cy Rossignol Date: Sat, 30 May 2020 10:11:42 -0500 Subject: [PATCH] Fix v11 height condition in ScrapeGetSuperblockContract() --- src/scraper/scraper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraper/scraper.cpp b/src/scraper/scraper.cpp index ef4aaaa4c7..4a43a67724 100755 --- a/src/scraper/scraper.cpp +++ b/src/scraper/scraper.cpp @@ -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);