Skip to content

Conversation

@liran-funaro
Copy link
Contributor

Type of change

  • Improvement (improvement to code, performance, etc)

Description

  • Remove redundant RPC in the coordinator: GetLastCommittedBlockNumber() - It was already covered by GetNextExpectedBlockNumber()
  • Remove unnecessary stream check in GetNextExpectedBlockNumber() - The sidecar verifies this anyway before calling this method
  • Align API with VC - Replaced GetLastCommittedBlockNumber() with GetNextExpectedBlockNumber()
  • Adjust relevant tests

Related issues

@liran-funaro liran-funaro requested a review from cendhu October 22, 2025 10:05
Copy link
Contributor

@cendhu cendhu left a comment

Choose a reason for hiding this comment

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

My suggestion is to use the name GetLastCommittedBlockNumber instead of GetNextExpectedBlockNumber. This also aligns with the existing SetLastCommittedBlockNumber. The caller (i.e., the sidecar) can then derive the next expected block number from the last committed block number.

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.

[proto] Unused RPC in the Coordinator: GetLastCommittedBlockNumber

2 participants