-
Notifications
You must be signed in to change notification settings - Fork 100
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
ics02_client ConsensusState trait
get root function should return Option value
#540
Comments
I'm less familiar with that part of the codebase, could you point to where this occurs in ibc-go? |
In ibc-go v5.0.0 this function return nill, https://github.com/cosmos/ibc-go/blob/28633816463b1323ccb48d197e9440c253f95a5c/modules/light-clients/06-solomachine/types/consensus_state.go#L26, but for now master have remove this function. I think this default implement return nill. |
From what I can tell, this function was unused. In the case of the tendermint light client, the consensus state root is used in Merkle proof verifications. If we look at the Basically, I think ibc-go's new way to do it is better; the main purpose of a Thank you for bringing this to our attention though; but after careful attention, I still believe our interface is appropriate as is. |
Feature Summary
In ibc-go, ics06-solomachine, and ics09-localhost, it's all not return value, they are return nill by default
Proposal
so, we can change
fn root(&self) -> &CommitmentRoot;
tofn root(&self) -> Option<&CommitmentRoot>;
The text was updated successfully, but these errors were encountered: