-
Notifications
You must be signed in to change notification settings - Fork 13
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
Consider changing BlockSyncStorage interface in block sync to rely on GetLastCommittedBlockHeight instead of LastCommittedBlockHeight #338
Comments
It was done because there is a lot of boxing/unboxing one has to do in case of calling |
acutally this got me looking at the code and i found a bug in |
@talkol , this is waiting for a spec change as we discussed, see orbs-network/orbs-spec#107 |
@tal, asking as i cannot remember right now, you decided this should not be changed and the tests were changed, |
@ronnno please evaluate and either close or assign for Q32019 milestone |
Will close the discussion in spec #109. |
The block sync separate unit relies on the block storage service via this interface:
Most of these functions are public functions of the service defined in the service proto defining its public well-known interface.
The only exception is
LastCommittedBlockHeight
.The service has a public known function in the protos called
GetLastCommittedBlockHeight
. This function also takes the context. Consider for esthetic reasons to switch to it instead of the internal versionLastCommittedBlockHeight
.This would also enable us to make
LastCommittedBlockHeight
lowercase and not exported. It's a smell to export service methods that aren't defined in the protos.The text was updated successfully, but these errors were encountered: