-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2151: Provide slot number (flat slot) in network information r=KtorZ a=rvl ### Issue Number ADP-418 / #2148 ### Overview Adds absolute slot numbers to API network information endpoint. ### Comments Example output: ```json { "network_tip": { "absolute_slot_number": 6044039, "epoch_number": 84, "slot_number": 125639 }, "node_tip": { "absolute_slot_number": 6044039, "height": { "quantity": 1815959, "unit": "block" }, "epoch_number": 84, "slot_number": 125639 }, "sync_progress": { "status": "ready" }, "next_epoch": { "epoch_start_time": "2020-09-21T20:20:16Z", "epoch_number": 85 } } ``` Co-authored-by: Rodney Lorrimar <[email protected]>
- Loading branch information
Showing
22 changed files
with
1,293 additions
and
1,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 41 additions & 31 deletions
72
lib/core/test/data/Cardano/Wallet/Api/ApiBlockReference.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,95 @@ | ||
{ | ||
"seed": -2366744487741549495, | ||
"seed": -8884251501313165306, | ||
"samples": [ | ||
{ | ||
"height": { | ||
"quantity": 18267, | ||
"quantity": 26609, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 16540, | ||
"slot_number": 15227 | ||
"epoch_number": 29339, | ||
"absolute_slot_number": 8555698, | ||
"slot_number": 3482 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 7566, | ||
"quantity": 9486, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 408, | ||
"slot_number": 28796 | ||
"epoch_number": 29485, | ||
"absolute_slot_number": 13869043, | ||
"slot_number": 29579 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 92, | ||
"quantity": 1596, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 32700, | ||
"slot_number": 14992 | ||
"epoch_number": 17216, | ||
"absolute_slot_number": 4172286, | ||
"slot_number": 1581 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 152, | ||
"quantity": 24900, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 24914, | ||
"slot_number": 1788 | ||
"epoch_number": 8508, | ||
"absolute_slot_number": 8254543, | ||
"slot_number": 2773 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 11791, | ||
"quantity": 15108, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 6604, | ||
"slot_number": 27814 | ||
"epoch_number": 15730, | ||
"absolute_slot_number": 949302, | ||
"slot_number": 19528 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 28780, | ||
"quantity": 3285, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 28310, | ||
"slot_number": 27847 | ||
"epoch_number": 403, | ||
"absolute_slot_number": 11555203, | ||
"slot_number": 1350 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 20717, | ||
"quantity": 11618, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 19953, | ||
"slot_number": 7805 | ||
"epoch_number": 28471, | ||
"absolute_slot_number": 11385630, | ||
"slot_number": 30197 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 6974, | ||
"quantity": 19871, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 29015, | ||
"slot_number": 8064 | ||
"epoch_number": 32375, | ||
"absolute_slot_number": 8383769, | ||
"slot_number": 6205 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 13051, | ||
"quantity": 28463, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 30163, | ||
"slot_number": 24402 | ||
"epoch_number": 712, | ||
"absolute_slot_number": 3302675, | ||
"slot_number": 17505 | ||
}, | ||
{ | ||
"height": { | ||
"quantity": 23300, | ||
"quantity": 16629, | ||
"unit": "block" | ||
}, | ||
"epoch_number": 12611, | ||
"slot_number": 8724 | ||
"epoch_number": 2454, | ||
"absolute_slot_number": 15142158, | ||
"slot_number": 1387 | ||
} | ||
] | ||
} |
Oops, something went wrong.