Skip to content

Conversation

@jamescowens
Copy link
Member

This should fix a validation error that is occurring on testnet post mandatory. The implementation of autogreylisting means that the greylisted projects should be included in the whitelist project list used for the determination of max projects in a manifest, rather than just the active projects (which is the default).

…cts.

This should fix a validation error that is occurring on testnet post
mandatory.
@jamescowens jamescowens self-assigned this Jun 19, 2025
@jamescowens jamescowens added this to the Natasha milestone Jun 19, 2025
@jamescowens jamescowens requested a review from Copilot June 19, 2025 04:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the scraper network to include greylisted projects (all but deleted) when determining the maximum number of projects to be processed in a manifest.

  • Changes the snapshot filter from the default active projects to include all projects except deleted ones.
  • Updates the computation of nMaxProjects to use the new snapshot size.
Comments suppressed due to low confidence (1)

src/gridcoin/scraper/scraper_net.cpp:511

  • Consider adding tests to verify that using the ALL_BUT_DELETED filter correctly includes greylisted projects, ensuring the change behaves as expected in different scenarios.
            std::ceil(static_cast<double>(GRC::GetWhitelist().Snapshot(GRC::ProjectEntry::ProjectFilterFlag::ALL_BUT_DELETED).size()) /

@jamescowens jamescowens merged commit 18f51f2 into gridcoin-community:development Jun 19, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant