-
Notifications
You must be signed in to change notification settings - Fork 11
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 a dedicated function to get the tip height and header? #308
Comments
@THLO WDYT? I believe this request has been re-occurring, and while developers can get this information from a call to |
Personally, I'd like to have a |
@THLO that sounds like it would work. Would passing around a larger Perhaps |
All of the metadata that I mentioned can be encoded in just a few bytes - except for the fee percentiles, which require a few hundred bytes -, so it wouldn't incur any significant costs. |
A suggestion to add a function to get the current best tip (both height and header):
Whilst I think this can be done using the forthcoming
get_block_headers_request
, it requires processing by the receiver; this would be simpler to use.Candid:
Alternatively, perhaps changing
get_block_headers_request
so that, withstart_height
at2^{32} - 1
for example, it could yield just the tip.Finally, perhaps it should also return any competing tips, or some kind of confidence indicator.
Thank you
Related:
#297 (comment)
#298
#292
#269
The text was updated successfully, but these errors were encountered: