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

Add validations to search functionality blockId and blockRange #376

Merged

Conversation

ArchanaArige
Copy link
Contributor

What this PR does / why we need it:

By adding validations, the code can handle the issues arising due to incorrect channelgenesishash etc. A user can also configure the "blockRangeLimit" in the config.json file. A backend configurable "blockRangeLimit" value can harness the user, with more flexibility of setting the blockRange value.

Which issue(s) this PR fixes:

Fixes #375

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation, usage docs, etc.:


Copy link
Contributor

@adityajoshi12 adityajoshi12 left a comment

Choose a reason for hiding this comment

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

Can you provide more description about what are we trying to solve here

if (startBlockNo < endBlockNo) {
if (
startBlockNo <= endBlockNo &&
startBlockNo >= 0 &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: please confirm if start block can be zero.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

startBlockNo can be Zero.
blockHeightRange

@ArchanaArige
Copy link
Contributor Author

Can you provide more description about what are we trying to solve here
Noted.
Please refer Issue#375, I have updated the issue with screenshots for better understanding.

@ArchanaArige ArchanaArige force-pushed the BE375-AddValidations branch 2 times, most recently from 5fcd2b5 to 735b314 Compare April 18, 2023 12:44
@ArchanaArige
Copy link
Contributor Author

removed the "blockRangeLimit" from config.json file. The blockRangeLimit value is now managed from UI itself.
Blocks-UI

Signed-off-by: ArchanaArige <nigam_archana@yahoo.co.in>
@ArchanaArige ArchanaArige merged commit e386317 into hyperledger-labs:main May 29, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add validations to blockId and blockRange search functionality
2 participants