Skip to content

Parlia voting#20

Merged
MatusKysel merged 5 commits into
parlia-devfrom
parlia-voting
Aug 27, 2025
Merged

Parlia voting#20
MatusKysel merged 5 commits into
parlia-devfrom
parlia-voting

Conversation

@MatusKysel

Copy link
Copy Markdown
Contributor

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

@MatusKysel MatusKysel requested review from Copilot and will-2012 and removed request for will-2012 August 27, 2025 09:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds the BSC protocol implementation for handling Parlia voting in the reth-bsc client, enabling communication with the Binance Smart Chain network for consensus vote exchange. The implementation follows the BSC protocol specification and includes message handling, encoding/decoding, and integration with the reth networking stack.

Key changes:

  • Implementation of BSC protocol message types (capability and votes packets)
  • BSC protocol stream handler for managing connections and message exchange
  • Vote pool management for collecting and deduplicating incoming votes
  • Update of reth dependencies to the bnb-chain fork

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/node/network/votes.rs New vote packet structures and encoding/decoding logic
src/node/network/bsc_protocol/ Complete BSC protocol implementation with handlers and stream management
src/consensus/parlia/vote_pool.rs Vote pooling and deduplication functionality
src/consensus/parlia/mod.rs Module integration for vote pool
Cargo.toml Dependency updates to bnb-chain reth fork

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/node/network/bsc_protocol/stream.rs
Comment thread src/node/network/votes.rs
Comment thread src/node/network/bsc_protocol/stream.rs

@will-2012 will-2012 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, pls fix the failed action.

@MatusKysel MatusKysel merged commit 21c2943 into parlia-dev Aug 27, 2025
8 checks passed
@MatusKysel MatusKysel deleted the parlia-voting branch August 27, 2025 13:15
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.

3 participants