-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: Tendermint light client integration for verification #5077
Comments
@cwgoes @melekes @tessr @marbar3778 Can you point me to the right function that needs to be used from the new EDIT: |
@cwgoes @AdityaSripal @mossid @zaki which values should we use for Verify(
chainID string,
h1 *types.SignedHeader,
h1NextVals *types.ValidatorSet,
h2 *types.SignedHeader,
h2Vals *types.ValidatorSet,
trustingPeriod time.Duration,
now time.Time,
trustLevel tmmath.Fraction) |
trustLevel = 1/3 (https://godoc.org/github.com/tendermint/tendermint/lite2#pkg-variables) |
Hmm, I think they should be parameters that the user can choose when they create the client. |
We can add them as params to the IBC client keeper and set the defaults to those values |
I think this issue has been closed by the wonderful ICS02 impl by @fedekunze |
Validity predicate
under ICS02 should handle consensus state updating for tendermint headers. The implementation will have the following type:Validate
must be a pure function which takes a new header and returns the updated consensus state(which is defined as(AppHash, NextValidatorSet)
in case of Tendermint).The current implementation of Tendermint lightclient in IBC module is a simple
ValidatorSet.VerifyFutureCommit
which accepts a header produced later than the current one and have more than 2/3 vote from the current validator set. It has to be integrated with the Tendermint side lightclient progress.The text was updated successfully, but these errors were encountered: