-
Notifications
You must be signed in to change notification settings - Fork 225
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: Evidence reporting #336
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.
what's left here? writing tests?
primary: light_block.clone(), | ||
witness: witness_block, | ||
}), | ||
Err(e) if e.kind().has_expired() => { |
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.
Err(e) if e.kind().has_expired() => { | |
Err(e) if !e.kind().has_expired() => { |
?
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.
Could you please expand on that?
The spec currently describe the case where header expired as a potential fork: https://github.com/informalsystems/tendermint-rs/pull/287/files#diff-57dd6c1989dd85c55b47487b7e1f92d8R409-R414
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.
Right. We report it even though we won't be able to punish. All good
|
Could this be exercised by #331 perhaps? |
You mean the whole fork detector? I guess that would exercise part of it, yes but not the case where the header verifies successfully. |
Codecov Report
@@ Coverage Diff @@
## master #336 +/- ##
========================================
- Coverage 27.2% 26.8% -0.4%
========================================
Files 129 131 +2
Lines 5040 5112 +72
Branches 1541 1570 +29
========================================
Hits 1375 1375
- Misses 2694 2766 +72
Partials 971 971
Continue to review full report at Codecov.
|
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.
with follow up tests once the fixtures are ready.
pub fn new(h1: SignedHeader, h2: SignedHeader) -> Self { | ||
Self { h1, h2 } | ||
} | ||
} |
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.
same
Closes #217
TODO
master
in