Skip to content

ABCI types.proto. Handle remaining discrepancies#9224

Merged
sergio-mena merged 3 commits intofeature/abci++pppfrom
sergio/9221-proto-discrepancies
Aug 12, 2022
Merged

ABCI types.proto. Handle remaining discrepancies#9224
sergio-mena merged 3 commits intofeature/abci++pppfrom
sergio/9221-proto-discrepancies

Conversation

@sergio-mena
Copy link
Contributor

Closes #9221

Out of the list of discrepancies on type.proto for abci (see #9221):

  • After some git archeology, we've decided to leave the definition ofConsensusParams and BlockParams where it is. Several reasons, but the two main ones: (1) this is v0.34, it works, and this change is not needed to deliver Prepare/ProcessProposal, and (2) the commit that changed this in v0.3[56].x doesn't contain any obvious logic change or improvement that justifies it
  • ABCI version field in RequestInfo has been cherry-picked. Reasons:
    • Close to trivial change
    • Will be important, moving forward, to see the ABCI version in the Handshake logs, as we will release ABCI++ change across several releases
  • Fields of EventAttribute from bytes to string. Findings in git history don't justify this change. If need it can be done later, not gating Prepare/ProcessProposal
  • Simplification of ResponseCheckTx. Likewise we won't do this change as it is non-trivial, and it is not gating for releasing Prepare/ProcessProposal

(on PR checklist below: only partially done, the changes are comming from the cherry-picked commit. It will be fully handled at the time the feature branch is merged with main, which will happen soon)


PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

@sergio-mena sergio-mena requested a review from ebuchman as a code owner August 11, 2022 17:37
@sergio-mena sergio-mena self-assigned this Aug 11, 2022
@sergio-mena sergio-mena requested a review from a team August 11, 2022 17:37
string version = 1;
uint64 block_version = 2;
uint64 p2p_version = 3;
string abci_version = 4;
Copy link
Contributor

@cmwaters cmwaters Aug 12, 2022

Choose a reason for hiding this comment

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

Does this need to be a string? can't we use a uint64 like we do with block_version and p2p_version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This field is populated from ABCISemVer, which uses semantic versioning. ABCISemVer is defined this way also in v0.34.x and probably in earlier releases.
So I am for not changing the versioning scheme.
However, I'll take the opp for bumping it now (to signal inclusion of PrepareProposal and ProcessProposal)

@sergio-mena sergio-mena merged commit cb570f6 into feature/abci++ppp Aug 12, 2022
@sergio-mena sergio-mena deleted the sergio/9221-proto-discrepancies branch August 12, 2022 09:57
samricotta pushed a commit that referenced this pull request Aug 16, 2022
* [cherrypicked] version: add abci version to handshake (#5706)

- add `AbciVersion` RequestInfo

Closes: #2804

* make proto-gen

* Bump ABCI version: Prepare and Process proposal

Co-authored-by: Marko <marbar3778@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done/Merged

Development

Successfully merging this pull request may close these issues.

4 participants