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

jcli rest v0 stake get no longer lists all pools with delegated stake in 0.8.2 #1371

Closed
JSCSJSCS opened this issue Dec 15, 2019 · 1 comment

Comments

@JSCSJSCS
Copy link

JSCSJSCS commented Dec 15, 2019

Describe the bug
Running the command jcli rest v0 stake get --output-format json --host "http://127.0.0.1:3101/api" should list all the stake pools that had delegated stake (even if 0 currently). Example:

./jcli rest v0 stake get --output-format json --host "http://127.0.0.1:3101/api"
{
"epoch": 2,
"stake": {
"dangling": 0,
"pools": [
[
"3c3ad23bd19d29b02874956015c870f1aaba6abf5c5d49c736c0da8e625883f0",
0
],
[
"4d6d353cb5273c62537702bdf9fe247c762af51a98dbe46538f27b5a5dd72146",
101800000
],
...

Prior to ITN, it would take +1 epochs for pools with delegated stake to show up in the output, 0.8.2 ITN stake pools show up in explorers and other online tools in the same epoch they were created. Currently with 0.8.2, there are about 225 stake pools, all with delegated stake, but the command above only shows 135 at the tie of this writing, only 89 of which show stake greater than 0.

./jcli rest v0 stake get --output-format json --host "http://127.0.0.1:3101/api" | Select-String "\[" | Measure-Object -l

Lines Words Characters Property
----- ----- ---------- --------
  135

Mandatory Information

  1. jcli --full-version output;
    jcli 0.8.2 (HEAD-fe327f9a, release, windows [x86_64]) - [rustc 1.39.0 (4560ea788 2019-11-04)]
  2. jormungandr --full-version output;
    jormungandr 0.8.2 (HEAD-fe327f9a, release, windows [x86_64]) - [rustc 1.39.0 (4560ea788 2019-11-04)]

Windows 10 Version 10.0 Build 18362
Powershell Version 5.1.18362.145

To Reproduce
Steps to reproduce the behavior:

  1. run jormungander node 0.8.2
  2. enter ./jcli rest v0 stake get --output-format json --host "http://127.0.0.1:3101/api"
  3. observe number of pools presented does not match actual number.

Expected behavior
I expected the number of pools presented and the stake delegated to represent the current status.

Additional context
The --output-format is added to make counting easier.
the cardano-wallet command ./cardano-wallet.exe stake-pool list shows the same 135 stake pools.

@JSCSJSCS
Copy link
Author

I see that cardano-wallet stake-pool list behaves the same as jcli rest v0 stake get in that the list contains pools that had stake delegated only at the beginning of the previous epoch, not any time in the previous epoch. Closing.

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

No branches or pull requests

1 participant