Skip to content

gossip: refactor cluster_info #5824#7228

Merged
alexpyattaev merged 2 commits intoanza-xyz:masterfrom
puhtaytow:cluster-info-5824-0
Aug 5, 2025
Merged

gossip: refactor cluster_info #5824#7228
alexpyattaev merged 2 commits intoanza-xyz:masterfrom
puhtaytow:cluster-info-5824-0

Conversation

@puhtaytow
Copy link
Copy Markdown

Problem

This is first PR of the #5824

Summary of Changes

  • cluster_info::Node has been moved to separate module.

Comment thread gossip/src/cluster_info.rs Outdated
//!
//! Bank needs to provide an interface for us to query the stake weight

pub use crate::node::Node;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I guess this is to avoid breaking public API. @puhtaytow can't we break it because we bump major version?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, that was the reason. Thank you for the suggestion.

KirillLykov
KirillLykov previously approved these changes Jul 30, 2025
Copy link
Copy Markdown

@KirillLykov KirillLykov left a comment

Choose a reason for hiding this comment

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

To me looks good: this PR moves the Node code into new module without unnecessary changes.

@puhtaytow puhtaytow requested a review from KirillLykov July 31, 2025 11:02
@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Aug 3, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Aug 3, 2025
@alexpyattaev
Copy link
Copy Markdown

Ok with no reexport the diff is kinda huge but I guess this is the price we have to pay...

@alexpyattaev alexpyattaev self-requested a review August 3, 2025 16:34
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.10236% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.1%. Comparing base (d76c437) to head (c56a58c).
⚠️ Report is 68 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7228     +/-   ##
=========================================
- Coverage    83.1%    83.1%   -0.1%     
=========================================
  Files         850      851      +1     
  Lines      369949   370108    +159     
=========================================
+ Hits       307739   307764     +25     
- Misses      62210    62344    +134     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KirillLykov
Copy link
Copy Markdown

@alexpyattaev are we good to go?

@alexpyattaev alexpyattaev merged commit ff24f14 into anza-xyz:master Aug 5, 2025
43 checks passed
@puhtaytow puhtaytow deleted the cluster-info-5824-0 branch August 6, 2025 04:35
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.

5 participants