8000 fix(types): Add missing JSON tags to `DuplicateVoteEvidence` and `LightClientAttackEvidence` types by alesforz · Pull Request #3543 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(types): Add missing JSON tags to DuplicateVoteEvidence and LightClientAttackEvidence types #3543

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

Merged
merged 7 commits into from
Jul 23, 2024

Conversation

alesforz
Copy link
Contributor
@alesforz alesforz commented Jul 22, 2024

Closes #3528

Changes

Added missing JSON tags to DuplicateVoteEvidence and LightClientAttackEvidence types.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
    - [ ] Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@alesforz alesforz linked an issue Jul 22, 2024 that may be closed by this pull request
@alesforz alesforz self-assigned this Jul 22, 2024
@alesforz alesforz requested a review from cason July 22, 2024 16:33
@alesforz alesforz added bug Something isn't working evidence labels Jul 22, 2024
Copy link
Contributor
@cason cason left a comment

Choose a reason for hiding this comment

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

This is ready for review, in my opinion.

@alesforz alesforz marked this pull request as ready for review July 23, 2024 07:45
@alesforz alesforz requested review from a team as code owners July 23, 2024 07:45
@alesforz alesforz requested a review from cason July 23, 2024 07:45
Copy link
Contributor
@cason cason left a comment

Choose a reason for hiding this comment

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

Thanks.

We have to define to which release branches to backport this bug fix.

@alesforz alesforz added this pull request to the merge queue Jul 23, 2024
Merged via the queue into main with commit fbca5ac Jul 23, 2024
39 checks passed
@alesforz alesforz deleted the 3528-evidence-missing-json-tags branch July 23, 2024 11:49
@alesforz alesforz added backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x backport-to-v1.x Tell Mergify to backport the PR to v1.x labels Jul 23, 2024
mergify bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)
mergify bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)

# Conflicts:
#	.changelog/v0.38.3/bug-fixes/3528-evidence-missing-json-tags.md
#	types/evidence_test.go
mergify bot pushed a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (#3543)

Closes #3528

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

(cherry picked from commit fbca5ac)

# Conflicts:
#	types/evidence_test.go
alesforz added a commit that referenced this pull request Jul 23, 2024
…htClientAttackEvidence` types (backport #3543) (#3548)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

Co-authored-by: Alessandro Sforzin <alesforz@gmail.com>
alesforz added a commit that referenced this pull request Jul 24, 2024
…htClientAttackEvidence` types (backport #3543) (#3549)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <alesforz@gmail.com>
Co-authored-by: Alessandro <alessandro@informal.systems>
alesforz added a commit that referenced this pull request Jul 24, 2024
…htClientAttackEvidence` types (backport #3543) (#3550)

Closes #3528 

### Changes
Added missing JSON tags to `DuplicateVoteEvidence` and
`LightClientAttackEvidence` types.

---

#### PR checklist

- [x] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
~- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request #3543 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Alessandro Sforzin <alesforz@gmail.com>
Co-authored-by: Alessandro <alessandro@informal.systems>
alesforz added a commit that referenced this pull request Aug 14, 2024
…and `LightClientAttackEvidence` types (backport #3543) (#3549)"

This reverts commit 24b39c5.
alesforz added a commit that referenced this pull request Aug 15, 2024
Given the discussion in #3528, we are reverting the changes made by
#3543 in `v0.38.x` (backported with #3549).
Additionally, we are removing the changes made in #3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
alesforz added a commit that referenced this pull request Aug 15, 2024
Given the discussion in #3528, we are reverting the changes made by
#3543 in `v0.37.x` (backported with #3550).
Additionally, we are removing the changes made in #3543 from the
CHANGELOG.

---

#### PR checklist

~- [ ] Tests written/updated~
~- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)~
~- [] Updated relevant documentation (`docs/` or `spec/`) and code
comments~
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x backport-to-v1.x Tell Mergify to backport the PR to v1.x bug Something isn't working evidence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DuplicateVoteEvidence json serialization uses mixed-casing
2 participants
0