Skip to content

Commit 9b6760e

Browse files
committed
Minor comment cleanup
1 parent f3c0f49 commit 9b6760e

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/scraper/scraper.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5214,14 +5214,12 @@ scraperSBvalidationtype ValidateSuperblock(const NN::Superblock& NewFormatSuperb
52145214
// Once we find a part that corresponds to the selected project in the given manifest, then break,
52155215
// because there can only be one part in a manifest corresponding to a given project.
52165216
int nPart = -1;
5217-
// int64_t nProjectObjectTime = 0;
52185217
uint256 nProjectObjectHash = 0;
52195218
for (const auto& vectoriter : manifest.projects)
52205219
{
52215220
if (vectoriter.project == iWhitelistProject.m_name)
52225221
{
52235222
nPart = vectoriter.part1;
5224-
// nProjectObjectTime = vectoriter.LastModified;
52255223
break;
52265224
}
52275225
}
@@ -5367,7 +5365,7 @@ scraperSBvalidationtype ValidateSuperblock(const NN::Superblock& NewFormatSuperb
53675365
53685366
Compute number of permutations and cumulative placevalue. For instance, if there were 4 projects, and
53695367
the number of candidate parts for each of the projects were 2, 3, 2, and 2, then the total number of
5370-
permutations would be 2 * 3 * 2 * 1 = 12, and the cumulative placevalue would be
5368+
permutations would be 2 * 3 * 2 * 2 = 24, and the cumulative placevalue would be
53715369
-------------------- 12, 4, 2, 1. Notice we will use a reverse iterator to fill in the placevalue
53725370
as we compute the total number of permutations. This is ridiculous of course because 99.99999% of the
53735371
time it is going to be 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 (one permutation) or at most something like
@@ -5843,17 +5841,6 @@ UniValue testnewsb(const UniValue& params, bool fHelp)
58435841

58445842
if (PastConvergencesSize > 1)
58455843
{
5846-
5847-
/*
5848-
std::default_random_engine generator(static_cast<unsigned int>(GetAdjustedTime()));
5849-
std::uniform_int_distribution<unsigned int> distribution(0, PastConvergencesSize - 1);
5850-
5851-
_log(logattribute::INFO, "testnewsb", "NN::ValidateSuperblock random past distribution limits: " + std::to_string(distribution.a())
5852-
+ " , " + std::to_string(distribution.b()));
5853-
5854-
unsigned int i = distribution(generator);
5855-
*/
5856-
58575844
int i = GetRandInt(PastConvergencesSize - 1);
58585845

58595846
_log(logattribute::INFO, "testnewsb", "NN::ValidateSuperblock random past RandomPastConvergedManifest index " + std::to_string(i) + " selected.");

0 commit comments

Comments
 (0)