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

Remove NodeToNodeV_13 #5068

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

Conversation

crocodile-dentist
Copy link
Contributor

@crocodile-dentist crocodile-dentist commented Feb 6, 2025

Description

Drops V13 which is incapable of crossing Plomin HF as of 2025.01.29
Resolves #5057

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@crocodile-dentist crocodile-dentist self-assigned this Feb 6, 2025
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner February 6, 2025 14:10
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/remove-nodetonode-v13 branch 2 times, most recently from b29aa27 to 576537a Compare February 6, 2025 18:55
@njd42
Copy link
Contributor

njd42 commented Feb 7, 2025

Could you add to the description the date that the HF happened please.

@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/remove-nodetonode-v13 branch from 576537a to a7a554d Compare February 7, 2025 10:50
bolt12 and others added 15 commits February 11, 2025 14:56
(See CHANGELOG for more details)

- Extract Cardano-specific components into separate modules to resolve cyclic dependency issues:
  - `ConsensusModePeerTargets` and `PeerSelectionTargets` were refactored to avoid circular dependencies.

- Introduce extension points in Diffusion data structures:
  - Split P2P functionality into `P2PCardano` (for Cardano Node specifics) and a more general `P2P` module.
  - Added `Minimal/Node.hs` as a placeholder for a minimal Node diffusion instantiation example.

- Refactor Peer Selection:
  - Removed redundant `PeerSelectionActionsArgs`.
  - Reorganized `DNSActions` and `LedgerPeersArgs`.
  - Improved API for `PeerSelectionActions`.

- Rename `Cardano.Node` to `Cardano.Network`.

- Generalize and refactor the following components:
  - `ConsensusModePeerTargets`.
  - `PeerSelection{Views, Counters}` to allow extensibility for third-party users.
  - `PublicRootPeers`.

- Enhance the Outbound Governor:
  - Generalize `MinimalP2P` for diffusion initialization.
  - Update `ArgumentsExtra` with new parameters for a more flexible diffusion setup.
  - Refactor `PeerSelection.Governor.Monitor` to separate Cardano-specific monitoring actions and support third-party custom actions.

- Ensure the `Diffusion` module is fully polymorphic:
  - Removed `CardanoP2P` dependencies.
  - Updated the test suite to align with the new structure.

- Miscellaneous updates:
  - Update CHaP and fix build issues.
  - Remove `daBlockFetchMode`.
  - Address review feedback.
  - Fix churn timeout tests and increase `shortDelay` to stabilize tests.
  - Recover `sigusr1` signal handler.
  - Make addresses polymorphic.
  - Refactor `extraDebugState` and introduce `P2PDecisionType`.
  - Refactor `requestPublicRootPeers` type.
They are passed as a closure, no need to leak them outside of `Cardano`
(or any other 3rd party integration).
Instead of specifying `extraAPI ~ ()` for non-p2p, we can make it
polymorphic.  This way both p2p & non-p2 `Application` type is using the
same type variables, and the wrapper type can be removed.  This is more
in-line with removal of non-p2p code base.
Also adhere to the convention: first `extraFlags`, then `extraPeers`
We can pass `PeerSelectionInterfaces` to `updateWithState` function to
get access to `readUseLedgerPeers`.
Also edit export lists so that we need fewer imports.
V13 is unable to cross Plomin HF manadatory on mainnet as of 2025.01.29
@crocodile-dentist crocodile-dentist force-pushed the mwojtowicz/remove-nodetonode-v13 branch from a7a554d to 99a7245 Compare February 17, 2025 11:02
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner February 17, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Drop NodeToNodeV_13
4 participants