Skip to content

feat: cleanup mode view#274

Merged
ZenGround0 merged 4 commits into
mainfrom
feat/cleanup-mode-getters
May 26, 2026
Merged

feat: cleanup mode view#274
ZenGround0 merged 4 commits into
mainfrom
feat/cleanup-mode-getters

Conversation

@wjmelements
Copy link
Copy Markdown
Contributor

Reviewer @ZenGround0
CC @LexLuthr @rvagg

Changes

  • allow view for getNextPieceId and getNextChallengeEpoch while in cleanup mode
  • replace string error with abi error
  • remove redundant setId checks

@wjmelements wjmelements requested a review from ZenGround0 May 26, 2026 15:47
@FilOzzy FilOzzy added this to FOC May 26, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC May 26, 2026
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC May 26, 2026
@rjan90 rjan90 moved this to 🔎 Awaiting review in PDP May 26, 2026
@rjan90 rjan90 added this to the M4.2: mainnet GA milestone May 26, 2026
Comment thread src/PDPVerifier.sol

// Returns false if the data set is 1) not yet created 2) deleted or in cleanup mode
function dataSetLive(uint256 setId) public view returns (bool) {
return setId < nextDataSetId && storageProvider[setId] != address(0)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we don't have to check setId < nextDataSetId because it is impossible for storageProvider[setId] to be set otherwise

Copy link
Copy Markdown
Contributor

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC May 26, 2026
@ZenGround0 ZenGround0 merged commit bff3998 into main May 26, 2026
4 checks passed
@ZenGround0 ZenGround0 deleted the feat/cleanup-mode-getters branch May 26, 2026 15:57
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC May 26, 2026
@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to 🎉 Done in PDP May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done
Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

4 participants