-
Notifications
You must be signed in to change notification settings - Fork 353
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
feat(light client): adds query for canonical client for rollapp #1158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. 2 questions though.
x/lightclient/types/params.go
Outdated
TrustLevel: ibctm.NewFractionFromTm(math.Fraction{Numerator: 1, Denominator: 3}), | ||
// TrustingPeriod is the duration of the period since the | ||
// LatestTimestamp during which the submitted headers are valid for update. | ||
TrustingPeriod: time.Hour * 24 * 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt it be a percentage of the unbonding period? what if we change the unbonding period?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, right, I meant to put a TODO here
I will add todo and issue
// that must sign over a new untrusted header before it is accepted. | ||
// At LEAST this much must sign over the untrusted header. Voting sets all have power | ||
// 1, so at least 1/3 of power 1 is 1. | ||
TrustLevel: ibctm.NewFractionFromTm(math.Fraction{Numerator: 1, Denominator: 3}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know 1/3 is still valid, but don't you think 1/1 is cleaner? what's the reason to change it back to 1/3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tendermint bug
Doesn't support 1/1, because they do a > operation (not >=)
I'm submitting to hackerone
Description
Closes #XXX
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
PR review checkboxes:
I have...
Unreleased
section inCHANGELOG.md
godoc
commentsSDK Checklist
map
time.Now()
sendCoin
and notSendCoins
Full security checklist here
For Reviewer:
After reviewer approval: