-
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
Add slotsInEpoch and slotsToEpochEnd to query tip command #4912
Add slotsInEpoch and slotsToEpochEnd to query tip command #4912
Conversation
5a4ce59
to
fbb1f0d
Compare
bors r+ |
👎 Rejected by too few approved reviews |
bors r+ |
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]>
This PR was included in a batch that timed out, it will be automatically retried |
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]>
Timed out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"slotsInEpoch": 314,
is this describing the current slot in the epoch? It looks like it is. We should change the name so slotInEpoch
as slotsInEpoch
sounds like the number of slots per epoch.
fbb1f0d
to
b2be3c6
Compare
b2be3c6
to
e1f16ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
cardano-cli/ChangeLog.md
Outdated
@@ -12,6 +12,8 @@ | |||
|
|||
- Allow assembling transactions with no witnesses ([PR 4408](https://github.com/input-output-hk/cardano-node/pull/4408)) | |||
|
|||
- Add `slotsInEpoch` and `slotsToEpochEnd` to output of `query tip` command ([PR 4912](https://github.com/input-output-hk/cardano-node/pull/4912)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sp: slotInEpoch
a2bd4a0
to
366827d
Compare
…utput of query tip command
366827d
to
8580e60
Compare
* Add slotsInEpoch and slotsToEpochEnd to query tip command * Update changelog for new slotsInEpoch and slotsToEpochEnd fields in output of query tip command
Example output:
Resolves #3878