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

api/consensus/block: Fix response when querying a single block #888

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Jan 18, 2025

Fixes #886

API endpoint returning a single block by height was using a separate code path to fetch the blocks which lead to the regression mentioned in the above issue.

This is now fixed so that a single code path is used when fetching either a single or multiple consensus blocks. This also resolves the issue.

@ptrus ptrus marked this pull request as ready for review January 18, 2025 12:36
@ptrus ptrus force-pushed the ptrus/fix/block-proposers branch 2 times, most recently from ce3fc5f to 60f7547 Compare January 18, 2025 12:37
@csillag
Copy link
Contributor

csillag commented Jan 18, 2025

Would it make sense to mark the field as mandatory on the API spec JSON?

Or are there some other situations when this piece of data is legitimately not present?

@ptrus
Copy link
Member Author

ptrus commented Jan 18, 2025

Yes for proposer we can, for signers we cannot, since we only get the signers of block X, when block X+1 is processed,so the latest block will always be missing signers.

Will update

@ptrus ptrus force-pushed the ptrus/fix/block-proposers branch from 60f7547 to 0b52714 Compare January 18, 2025 13:28
@csillag
Copy link
Contributor

csillag commented Jan 18, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: Consensus block proposal data is often (always?) missing
2 participants