Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-8.1] Remove partialRetrieve from RetrieveDSBlocks #2689

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

sunny-teo9000
Copy link

@sunny-teo9000 sunny-teo9000 commented Aug 18, 2021

Description

Remove partialRetrieve bool from RetrieveDSBlocks

Backward Compatibility

  • This is not a breaking change
  • This is a breaking change

Review Suggestion

Status

Implementation

  • ready for review

Integration Test (Core Team)

  • local machine test
  • small-scale cloud test

@github-actions github-actions bot changed the title Remove partialRetrieve from RetrieveDSBlocks [release-8.1] Remove partialRetrieve from RetrieveDSBlocks Aug 18, 2021
@github-actions github-actions bot added this to PRs in development in Core Aug 18, 2021
@@ -1860,16 +1860,14 @@ void Lookup::RetrieveDSBlocks(vector<DSBlock>& dsBlocks, uint64_t& lowBlockNum,
lowBlockNum = 1;
}

lowBlockNum = partialRetrieve ? max(minBlockNum, lowBlockNum)
: min(minBlockNum, lowBlockNum);
lowBlockNum = max(minBlockNum, lowBlockNum);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think can remove this max/min logic itself, lowBlocknum is what it should be

@sunny-teo9000 sunny-teo9000 force-pushed the fix/remove-var-partial-retriever branch from bb5e530 to 68537c9 Compare August 19, 2021 02:31
Core automation moved this from PRs in development to PRs approved - ready to merge! Aug 19, 2021
@sandipbhoir sandipbhoir merged commit da4acb9 into release-8.1 Aug 19, 2021
Core automation moved this from PRs approved - ready to merge! to PRs done (merged) Aug 19, 2021
@sandipbhoir sandipbhoir deleted the fix/remove-var-partial-retriever branch August 19, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Core
  
PRs done (merged)
Development

Successfully merging this pull request may close these issues.

None yet

4 participants