-
Notifications
You must be signed in to change notification settings - Fork 216
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
Light client impl followup #96
Comments
Something else I've noticed, and we can optimize for (but later): Currently all operations on the impls of traits traits that do not take an additional argument can be "cached" in a field instead of recomputed on each call. |
With respect to removing the Validator trait. I think this is something we should try to do, since these methods aren't actually used within the light client itself, they only need to be exposed so that an implementation of Commit.voting_power_in, which takes a ValidatorSet, has access to these validator internals. Perhaps we can avoid this if the ValidatorSet is somehow an associated type on Commit so it can more readily access the internals without going through a trait. This will also make it much easier to write tests for the core light client logic without having to mock out individual validators and the |
Tracking TODOs for the Light client impl
Feedback / Review of #84
validate_vals_and_commit
and make it function ofCommit
(?): Light client: further trait impls, improvements, and tests #84 (comment) - done in Bucky/some light follow up #109From<SystemTimeEror> for lite::Error
and Light client: further trait impls, improvements, and tests #84 (comment). Done in Bucky/some light follow up #109Validator
trait ? Light client: further trait impls, improvements, and tests #84 (comment) - done in remove Validator trait; make ValidatorSet associated to Commit #105h1_xxx
andh2
. This should also be done simultaneously with the spec. eg. Light client: bisection, store, requester #100 (comment) and Light client: bisection, store, requester #100 (comment) and https://github.com/interchainio/tendermint-rs/pull/100/files#r360479080The text was updated successfully, but these errors were encountered: