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

chore(node): Further P2P Fixes #1280

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

chore(node): Further P2P Fixes #1280

wants to merge 3 commits into from

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Mar 19, 2025

Description

More p2p fixes and restructuring to make the interface cleaner.

@refcell refcell requested a review from clabby as a code owner March 19, 2025 19:05
@refcell refcell added the A-node Area: node crates label Mar 19, 2025
@refcell refcell requested a review from emhane as a code owner March 19, 2025 19:05
@refcell refcell added the K-chore Kind: chore label Mar 19, 2025
@refcell refcell self-assigned this Mar 19, 2025
@refcell
Copy link
Collaborator Author

refcell commented Mar 19, 2025

📚 $\text{Stack Overview}$

Pulls submitted in this stack:

This comment was automatically generated by st.

Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 59.24855% with 141 lines in your changes missing coverage. Please review.

Project coverage is 91.3%. Comparing base (6bcde28) to head (9b0efc7).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/node/p2p/src/peers/store.rs 26.8% 60 Missing ⚠️
crates/node/p2p/src/discv5/driver.rs 4.3% 44 Missing ⚠️
crates/node/p2p/src/gossip/driver.rs 41.3% 17 Missing ⚠️
crates/node/p2p/src/net/builder.rs 91.9% 9 Missing ⚠️
crates/node/p2p/src/gossip/builder.rs 85.7% 8 Missing ⚠️
crates/node/p2p/src/net/driver.rs 0.0% 3 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@refcell refcell mentioned this pull request Mar 20, 2025
#[error("gossip address not set")]
GossipAddrNotSet,
/// An error when building the gossip behaviour.
#[error("error building gossip behaviour")]
Copy link
Member

Choose a reason for hiding this comment

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

probably want to include the wrapped error in the error message here

let (sender, recv) = channel();
unsafe_recv: Receiver<Address>,
) -> (Self, tokio::sync::mpsc::Receiver<OpNetworkPayloadEnvelope>) {
let (sender, recv) = channel(256);
Copy link
Member

Choose a reason for hiding this comment

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

let's avoid magic numbers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

gossip isn't even working rn so trying to fix that first before small improvements

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

aka don't want to spend too much time refactoring these parameters before it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-node Area: node crates K-chore Kind: chore
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants