Closed gitmachtl closed 7 months ago
@smelc any updates on that front? thx!
@carlhammann @smelc
hmm... something is wrong with cli version 8.20.3.0. looks like the --include-stake
logic is inverted.
doing a query for a specific drep-id/hash with the --include-stake
flag does NOT return the state with the stake:
./cardano-cli conway query drep-state --drep-key-hash a8eb0fa2b5c0fcc5014fb74a162c6ee0c0e89199ed939ab97432c71a --include-stake
[
[
{
"keyHash": "a8eb0fa2b5c0fcc5014fb74a162c6ee0c0e89199ed939ab97432c71a"
},
{
"anchor": null,
"deposit": 2000000,
"expiry": 273
}
]
]
On the other hand, leaving the --include-stake
flag out returns the state WITH the stake:
$ ./cardano-cli conway query drep-state --drep-key-hash a8eb0fa2b5c0fcc5014fb74a162c6ee0c0e89199ed939ab97432c71a
[
[
{
"keyHash": "a8eb0fa2b5c0fcc5014fb74a162c6ee0c0e89199ed939ab97432c71a"
},
{
"anchor": null,
"deposit": 2000000,
"expiry": 273,
"stake": 95472917
}
]
]
Doing a query for a specific
--drep-key-hash
does not return the stake even if the flag--include-stake
is set:However, doing a query for
--all-dreps
not only autoincludes(should be off by default) the stake query but when you look at the data for the example drep-key-hash above the output is:@carlhammann @smelc