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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/staking #333

Merged
merged 5 commits into from
Dec 10, 2022
Merged

Fix/staking #333

merged 5 commits into from
Dec 10, 2022

Conversation

dabasov
Copy link
Member

@dabasov dabasov commented Dec 10, 2022

A brief description of the changes in this PR:

Tasks to complete before merging PR:

  • Ensure system tests are passing. If not Run them manually to check for any regressions 馃搵
  • 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

Associated PRs (Link as appropriate):
0chain: 0chain/0chain#1823
gosdk: 0chain/gosdk#662
system_test: 0chain/system_test#487
zwalletcli: 0chain/zwalletcli#199

@service-0chain
Copy link
Contributor

Manual system tests [failure] with the following config

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

Comment on lines +250 to -264
_, _, err = sdk.StakePoolUnlock(providerType, providerID, zcncore.ConvertToValue(fee))
// an error
if err != nil {
log.Fatalf("Failed to unlock tokens in stake pool: %v", err)
}

// can't unlock for now
if !unstake {
fmt.Println("tokens can't be unlocked due to opened offers")
fmt.Printf("the pool marked as releasing, wait and retry to succeed")
fmt.Printf("to reduce blobber commitments cancel or finalize allocations")
fmt.Println()
return
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it okay to unlock at any time now?

@service-0chain
Copy link
Contributor

Manual system tests [success] with the following config

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

@dabasov dabasov merged commit 40f7be6 into staging Dec 10, 2022
peterlimg added a commit that referenced this pull request Jan 27, 2023
* staging:
  change zbox get to zbox getallocation
  upgrade GoSDK to v1.8.11 (#338)
  Fix/staking (#333)
@cnlangzi cnlangzi deleted the fix/staking branch February 15, 2023 10:24
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.

None yet

3 participants