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

Removed protocol_version from config #49

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

pompon0
Copy link
Collaborator

@pompon0 pompon0 commented Dec 8, 2023

What ❔

Removed protocol_version from config.
Instead, I've added a constant in bft crate indicating the version of the protocol implementation.
The payload format should be versioned separately. Payload format version should be included in the payload itself (set via PayloadSource::propose, verified via WriteBlockStore::verify_payload).

Why ❔

What is being versioned is actually the implementation of the consensus, so it doesn't make sense to configure it via config. If it was configurable the implementation wouldn't be able to reason about the protocol version and compatibility of the peers.

@pompon0 pompon0 merged commit 300e605 into main Dec 8, 2023
3 of 4 checks passed
@pompon0 pompon0 deleted the gprusak-protocol-version branch December 8, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants