Skip to content
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

Cleanup of evidence types #7251

Merged
merged 6 commits into from
Sep 8, 2020
Merged

Conversation

robert-zaremba
Copy link
Collaborator

@robert-zaremba robert-zaremba commented Sep 7, 2020

Description

  • Cleanup old evidence types and import all latest abci and tendermint/types types.
  • Handle the EvidenceType_LIGHT_CLIENT_ATTACK same as Duplicate Vote.
  • Bump Tendermint version to the latest master
  • Update Tendermint breaking changes (eg: RPC config update)
  • Update to new abci type definitions

closes: #7190
relates to: tendermint/tendermint#5288

NOTE:
Tendermint release v0.34 is blocked by some other tasks. That being said, the evidence updates on Tendermint side are done. Since we are in rush to have SDK Stargate RC, I didn't break this PR into 2 independent PR (tendermint update + evidence update).


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Sep 7, 2020

Codecov Report

Merging #7251 into master will decrease coverage by 0.00%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #7251      +/-   ##
==========================================
- Coverage   55.14%   55.13%   -0.01%     
==========================================
  Files         584      584              
  Lines       40512    40506       -6     
==========================================
- Hits        22341    22335       -6     
  Misses      16301    16301              
  Partials     1870     1870              

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, left a few comments but overall looks good

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @robert-zaremba! I just think we need to rename that one method.

Also, @marbar3778 what's up with codecov? It made this PR very hard to review.

x/evidence/types/evidence.go Show resolved Hide resolved
x/evidence/abci.go Outdated Show resolved Hide resolved
@alexanderbez alexanderbez added C:x/evidence A:automerge Automatically merge PR once all prerequisites pass. labels Sep 7, 2020
@tac0turtle
Copy link
Member

Also, @marbar3778 what's up with codecov? It made this PR very hard to review.

New feature I guess. Ill look into removing it tomorrow, its really annoying

@tac0turtle tac0turtle mentioned this pull request Sep 8, 2020
16 tasks
Handle the EvidenceType_LIGHT_CLIENT_ATTACK same as Duplicate Vote.

+ Bump Tendermint version to the latest master
+ Update Tendermint breaking changes (eg: RPC config update)
+ Update to new abci type definitions
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@tac0turtle tac0turtle removed the A:automerge Automatically merge PR once all prerequisites pass. label Sep 8, 2020
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@alexanderbez alexanderbez merged commit 9856327 into master Sep 8, 2020
@alexanderbez alexanderbez deleted the robert/evidence-v40-handling branch September 8, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDK handling of new evidence types
4 participants