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

types: add consensus protocol and types. #543

Merged
merged 5 commits into from
May 26, 2023
Merged

types: add consensus protocol and types. #543

merged 5 commits into from
May 26, 2023

Conversation

winder
Copy link
Contributor

@winder winder commented May 24, 2023

Copies the consensus types and versions from go-algorand.

@winder winder requested a review from shiqizng May 24, 2023 14:59
@winder winder self-assigned this May 24, 2023
@winder winder requested review from tzaffi and Eric-Warehime May 26, 2023 14:13
Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

Verified the following were identical functionally (using diff):

  • protocol/consensus.go vs. go-algorand/protocol/consensus.go
  • protocol/config/consensus.go vs. go-algorand/config/consensus.go

We should consider adding an x-repo-types check in go-algorand for ConsensusParams and maybe even a deeper checker that calls ConsensusVersion() and initConsensusProtocols() in each package and compares the outputs.

@winder
Copy link
Contributor Author

winder commented May 26, 2023

@tzaffi good idea. I created an issue to track that improvement:
#547

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.

2 participants