-
Notifications
You must be signed in to change notification settings - Fork 720
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
[FR] stake-snapshot of all pools #4570
Comments
Basic acceptance criteria:
With
From an end-user perspective we don't really care if it downloads the ledger state or not :) But it's critically important the output contains the exact stake for each pool and not a percentage or truncated value. @jpraynaud WDYT? |
Absolutely, we need stake values in lovelaces for all pool ids, and for mark, set and go snapshots. The
Maybe the
or
|
@abailly-iohk Using the ledger state might be irrelevant to the end user. But I guess performance is not. This will not give a good performance (can even OOM your machine) if this depends on getting the ledger state, thus I'd like to avoid it an make it an acceptance criteria |
Not too sure about the performance criterion (acceptable latency) but of course it should not crash on mainnet, even if it scales to several 1000s of SPOs. The truth is we all know this information is trivial to obtain from the ledger because it's maintained as part of the |
Related to Acceptance Criteria, I am looking to see some values around the Performance of this new cli command, like:
One clear requirement I would make would be to make sure the machine does not OOM and that the node that is running on the same machine is not affected. |
Regarding the performance, we could probably use the Assuming that computations are done sequentially for the go, set and mark snapshots and that the size of the computed stake distribution itself is almost negligible:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
Implemented by #4570 |
What
Add the ability to query for multiple stake pools, no stake pools or all stake pools in the
query stake-pool
command.Previously it was only possible to query for one specific stake pool:
The change introduces a
pools
object to accomodate more than one stake pool in the result like this and thus is a breaking change:Then querying for multiple stack pools can be done by adding more
--stake-pool-id
switches, for example:Alternatively, no
--stake-pool-id
options can be supplied in which case only the active stake is returned:It will also be possible to query for all stake pools by supplying
--all-stake-pools
flag:Why
Mithril needs the "set" stake distribution, ie. the one that's valid for the current epoch, to sign it as part of its chain of trust. There's an existing stake distribution command but:
We are currently using the stake-pool command which returns the exact s for each SP, but unfortunately this means we have to run the command for each SP which of course does not scale very well.
Personas - Who will this affect?
Acceptance Criteria
mark
,set
,go
Definition of done
Sign-off
Related PRs
The text was updated successfully, but these errors were encountered: