-
Notifications
You must be signed in to change notification settings - Fork 721
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] - Show slotInEpoch in cardano-cli query tip #3878
Comments
So this involves changing the JSON output of the
and in the mainnet shelley genesis file
We should be able to take the result of |
4912: Add slotsInEpoch and slotsToEpochEnd to query tip command r=newhoggy a=newhoggy Example output: ``` CARDANO_NODE_SOCKET_PATH=example/node-pool1/node.sock cardano-cli query tip --testnet-magic 42 { "block": 768, "epoch": 33, "era": "Alonzo", "hash": "4ca7fd3a9827e74f98e779a8ae333dc6fa3b69832cb11fdbab7af215eb68b1ee", "slot": 16814, "slotsInEpoch": 314, "slotsToEpochEnd": 186, "syncProgress": "100.00" } ``` Resolves #3878 4915: Tip hash metrics r=newhoggy a=newhoggy Salvaging this PR #2006 Related to #801 4922: Deploy Haddock for merge to master only r=newhoggy a=newhoggy To merge changes from this PR #3012 Co-authored-by: John Ky <[email protected]> Co-authored-by: Luke Nadur <[email protected]> Co-authored-by: James Browning <[email protected]>
4912: Add slotsInEpoch and slotsToEpochEnd to query tip command r=newhoggy a=newhoggy Example output: ``` CARDANO_NODE_SOCKET_PATH=example/node-pool1/node.sock cardano-cli query tip --testnet-magic 42 { "block": 768, "epoch": 33, "era": "Alonzo", "hash": "4ca7fd3a9827e74f98e779a8ae333dc6fa3b69832cb11fdbab7af215eb68b1ee", "slot": 16814, "slotsInEpoch": 314, "slotsToEpochEnd": 186, "syncProgress": "100.00" } ``` Resolves #3878 Co-authored-by: John Ky <[email protected]>
Internal
Area
Other CLI
Describe the feature you'd like
Show slotInEpoch in cardano-cli query tip output so that one can easily know beforehand (and automate) if is still within the window for submitting transactions like Update proposals and MIR.
Additional context / screenshots
https://input-output-rnd.slack.com/archives/G011N23CEAE/p1652967091248049
Acceptance Criteria
Slot in epoch is the slot number within a given epoch, as opposed to the absolute slot number.
When the user queries the tip of the chain:
{
"era": "Alonzo",
"syncProgress":
"hash":
"epoch":
"slot":
"block":
"slotInEpoch":
}
The text was updated successfully, but these errors were encountered: