Skip to content
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 block_info api for new HTTP service #509

Merged
merged 9 commits into from
Nov 6, 2023
Merged

Conversation

al8n
Copy link
Contributor

@al8n al8n commented Nov 6, 2023

Based on #502.

zeegomo and others added 4 commits November 3, 2023 10:35
Consensus info was returning the full list of blocks even though
that can get quite large with time. Instead, this commit change
that API to return a constant size message and adds a new one to
return a chain of blocks with user specified endings.
Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>
@al8n al8n added the enhancement New feature or request label Nov 6, 2023
@al8n al8n added this to the Nomos testnet (playground) milestone Nov 6, 2023
@al8n al8n self-assigned this Nov 6, 2023
@@ -85,6 +89,7 @@ where
.route("/cl/metrics", routing::get(cl_metrics::<T>))
.route("/cl/status", routing::post(cl_status::<T>))
.route("/carnot/info", routing::get(carnot_info::<T, S, SIZE>))
.route("/block/info", routing::get(block_info::<T, S, SIZE>))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/carnot/blocks probably? based on #502.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch, thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I think we also need to rename the function name block_info to carnot_blocks (or something else).

@al8n al8n changed the base branch from improve-consensus-api to master November 6, 2023 12:02
@al8n al8n merged commit 196f395 into master Nov 6, 2023
7 checks passed
@al8n al8n deleted the improve-consensus-api-new branch November 6, 2023 14:14
al8n added a commit that referenced this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants