[proto] Remove redundant RPC GetLastCommittedBlockNumber()#155
Conversation
cendhu
left a comment
There was a problem hiding this comment.
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.
|
@cendhu The reason |
Yes, when I read, I was thinking that |
9bba68d to
6bb7b04
Compare
|
I opted for |
|
Resolve conflicts. Otherwise, LGTM. |
6bb7b04 to
f3739ea
Compare
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
f3739ea to
684fb80
Compare
Type of change
Description
GetLastCommittedBlockNumber()- It was already covered byGetNextExpectedBlockNumber()GetNextExpectedBlockNumber()- The sidecar verifies this anyway before calling this methodGetLastCommittedBlockNumber()withGetNextExpectedBlockNumber()Related issues