-
Notifications
You must be signed in to change notification settings - Fork 87
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
diffusion: IOError rethrow policy #5067
Open
coot
wants to merge
14
commits into
main
Choose a base branch
from
coot/io-rethrow-policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
karknu
approved these changes
Feb 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ouroboros-network/sim-tests-lib/Test/Ouroboros/Network/Testnet.hs
Outdated
Show resolved
Hide resolved
(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.
It's not needed.
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`.
f1006f9
to
0951ffe
Compare
testnet: organised imports
Also edit export lists so that we need fewer imports.
0951ffe
to
4512e4b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rebased on top of #5016.