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

rp-info currency format #350

Conversation

SinanEkm
Copy link
Contributor

@SinanEkm SinanEkm commented Feb 6, 2023

A brief description of the changes in this PR:
Some changes have been made to the rp-info method. After the changes, rp-info method and --json option returning an output more like the ./zwallet getbalance method's output.

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:
  • blobber:
  • gosdk:
  • system_test:
  • zwalletcli:
  • Other: ...

@SinanEkm SinanEkm linked an issue Feb 6, 2023 that may be closed by this pull request
@Kishan-Dhakan
Copy link
Contributor

@SinanEkm what's the status of this PR?

@SinanEkm SinanEkm changed the title required changes applied rp-info currency format Feb 14, 2023
@SinanEkm SinanEkm marked this pull request as ready for review February 14, 2023 18:17
@service-0chain
Copy link
Contributor

Manual system tests [failure] with the following config

config value
tests skipped FALSE
system-tests 340-rp-info-value-returned-requires-consistent-zcn-currency-format
gosdk staging
zboxcli 340-rp-info-value-returned-requires-consistent-zcn-currency-format
zwalletcli staging
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

@service-0chain
Copy link
Contributor

Manual system tests [success] with the following config

config value
tests skipped FALSE
system-tests model.go-ReadPoolInfo-change
gosdk staging
zboxcli 340-rp-info-value-returned-requires-consistent-zcn-currency-format
zwalletcli staging
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

@service-0chain
Copy link
Contributor

Manual system tests [failure] with the following config

config value
tests skipped FALSE
system-tests model.go-ReadPoolInfo-change
gosdk staging
zboxcli 340-rp-info-value-returned-requires-consistent-zcn-currency-format
zwalletcli staging
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

Copy link
Member

@dabasov dabasov left a comment

Choose a reason for hiding this comment

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

lgtm, is it the only pool where we have such a problem? does it work for stakepool and writepool correctly?

@SinanEkm
Copy link
Contributor Author

SinanEkm commented Feb 19, 2023

lgtm, is it the only pool where we have such a problem? does it work for stakepool and writepool correctly?

do you mean formatting @dabasov ? If so, I checked sp-info command and it doesn't show USD value of the balance, too. I am not sure about writepool, is there wp-info command or any such thing that is equivalent to it?

cmd/readpool.go Outdated Show resolved Hide resolved
cmd/readpool.go Outdated Show resolved Hide resolved
@service-0chain
Copy link
Contributor

Manual system tests [success] with the following config

config value
tests skipped TRUE
system-tests model.go-ReadPoolInfo-change
gosdk staging
zboxcli 340-rp-info-value-returned-requires-consistent-zcn-currency-format
zwalletcli staging
0chain staging
blobber staging
authorizer staging
0box staging
0block staging
0dns staging
explorer staging
0proxy staging
0search staging

Copy link
Member

@dabasov dabasov left a comment

Choose a reason for hiding this comment

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

lgtm

@dabasov
Copy link
Member

dabasov commented Feb 23, 2023

lgtm, is it the only pool where we have such a problem? does it work for stakepool and writepool correctly?

do you mean formatting @dabasov ? If so, I checked sp-info command and it doesn't show USD value of the balance, too. I am not sure about writepool, is there wp-info command or any such thing that is equivalent to it?

I mean this https://github.com/0chain/zboxcli/blob/23bc1d65cfbe6f33b51537c5c50a092b45a7b544/cmd/stakepool.go
should we have consistent output here?

@Kishan-Dhakan Kishan-Dhakan merged commit a6afa5e into staging Feb 23, 2023
@Kishan-Dhakan Kishan-Dhakan deleted the 340-rp-info-value-returned-requires-consistent-zcn-currency-format branch February 23, 2023 21:13
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.

rp-info value returned requires consistent zcn currency format
4 participants