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

Validate that createmswallet threshold is bigger than 0 #92

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

shaktals
Copy link
Contributor

@shaktals shaktals commented Feb 20, 2022

Tasks to complete before merging PR:

  • [x ] Ensure system tests are passing. If not Run them manually to check for any regressions 📋
  • [x ] Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
  • Merge your system tests PR to master AFTER merging this PR

Resolves #49

@shaktals shaktals requested a review from stewartie4 February 20, 2022 00:51
@shaktals
Copy link
Contributor Author

I'll work on the system tests to fix them.

@service-0chain
Copy link
Contributor

Manual system tests [success] with the following config

config value
tests skipped FALSE
system-tests validate-createmswallet-threshold
gosdk NOT OVERRIDDEN
zboxcli staging
zwalletcli createmswallet-threshold-fix
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

Copy link
Contributor

@Kishan-Dhakan Kishan-Dhakan left a comment

Choose a reason for hiding this comment

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

LGTM

@Kishan-Dhakan
Copy link
Contributor

Kishan-Dhakan commented Feb 24, 2022

Thanks @shaktals! Client side validation on this is great as it reduces overhead. The panic itself is thrown in goSDK, since our SDK is open for others to use I'll raise a PR there to fix the underlying issue.

Edit: Fixed via: 0chain/gosdk#405

@shaktals shaktals merged commit c6ec4d4 into staging Feb 24, 2022
@shaktals shaktals deleted the createmswallet-threshold-fix branch February 24, 2022 16:30
@cnlangzi
Copy link
Contributor

@Kishan-Dhakan @shaktals this PR seems break 0Chain System Test ? see https://github.com/0chain/zwalletcli/runs/5261772741?check_suite_focus=true. it should not be merged to staging. it blocks other PRs again.

@cnlangzi
Copy link
Contributor

I know why it fails. @shaktals you forget to merge 0chain/system_test#199 first.

@shaktals
Copy link
Contributor Author

@cnlangzi I got this instruction to merge the feature branch first. But maybe I missed the point of doing the merges one right after another.

Selection_386

@cnlangzi
Copy link
Contributor

cnlangzi commented Feb 25, 2022

0chain/system_test#199

@shaktals Actually, you forget to merge 0chain/system_test#199 :)

@shaktals
Copy link
Contributor Author

shaktals commented Feb 25, 2022

@cnlangzi I did not forget anything.
When @Kishan-Dhakan approved it, I was taking care of other tasks.
You just got to it before I did.

@service-0chain
Copy link
Contributor

Manual system tests [failure] with the following config

config value
tests skipped false
system-tests
gosdk NOT OVERRIDDEN
zboxcli
zwalletcli
0chain
blobber
authorizer
0box
0dns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add validation to threshold param on createmswallet to avoid panic
4 participants