-
Notifications
You must be signed in to change notification settings - Fork 86
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
PeerSharingServer refactorisation #4782
Comments
IIRC it is only how it is now because polymorphism shenanigans and because we need access to the If we want to move |
We can pass |
And then consolidate it in I would define provide it in This way in the future we can extend We could also define our own |
Merging commits from master (should be an empty commit or trivial to resolve conflicts when this branch is merged into master) Squashed commit of the following: commit e48175f Merge: 8ab4448 7d49003 Author: Armando Santos <armandoifsantos@gmail.com> Date: Wed Feb 21 13:42:17 2024 +0000 Merge pull request #4810 from IntersectMBO/bolt12/bootstrapPeers-forget Forget non-established bootstrap peers commit 7d49003 Author: Armando Santos <armando@well-typed.com> Date: Wed Feb 21 10:32:52 2024 +0000 Added FetchMode script to Testnet tests commit 05ab38b Author: Armando Santos <armando@well-typed.com> Date: Mon Feb 19 15:38:02 2024 +0000 Churn BootstrapPeers commit 58a4f3b Author: Armando Santos <armando@well-typed.com> Date: Tue Feb 20 15:53:55 2024 +0000 Forget about non established bootstrap peers commit 8ab4448 Merge: b118f38 b4f086a Author: Marcin Wójtowicz <158484752+crocodile-dentist@users.noreply.github.com> Date: Tue Feb 20 12:48:42 2024 +0000 Merge pull request #4803 from IntersectMBO/refactor/withpeerselectionaction refactor withPeerSelectionAction argument list commit b4f086a Author: Marcin Wójtowicz <158484752+crocodile-dentist@users.noreply.github.com> Date: Tue Feb 20 11:55:49 2024 +0100 Update ouroboros-network/src/Ouroboros/Network/PeerSelection/PeerSelectionActions.hs Co-authored-by: Marcin Szamotulski <coot@coot.me> commit 5cf418c Author: Marcin Wójtowicz <marcin.wojtowicz@iohk.io> Date: Sun Feb 11 18:53:32 2024 +0100 refactor withPeerSelectionAction argument list commit b118f38 Merge: f83f71a 2b44951 Author: Armando Santos <armandoifsantos@gmail.com> Date: Wed Feb 14 18:06:56 2024 +0000 Merge pull request #4799 from IntersectMBO/bolt12/bootstrap-peers-fix Fix local roots clamp to trustable & changed LedgerPeersConsensusInterface function type signature commit 2b44951 Author: Armando Santos <armando@well-typed.com> Date: Wed Feb 7 14:14:10 2024 +0000 Fix local roots clamp to trustable and changed API commit f83f71a Merge: 436d902 2193d67 Author: Marcin Szamotulski <coot@coot.me> Date: Mon Feb 12 12:07:48 2024 +0000 Merge pull request #4796 from AndrewWestberg/amw/comment_fix Fix comment: Duplex started in NodeToNodeV_10 commit 2193d67 Author: Andrew Westberg <andrewwestberg@gmail.com> Date: Fri Feb 2 19:30:59 2024 +0000 Fix comment: Duplex started in NodeToNodeV_10
PeerSharingServer refactorisation #4782
computePeerSharing
should be defined inOuroboros.Network.PeerSharing
. We don't need to export it, it should be used directly bypeerSharingServer
. This will simplify the interface we expose to consensus, e.g. no callback in thedaApplicationInitiatorResponderMode
, but instead requires access toPublicPeerSelectionState
which is fine, we do that for other mini-protocols as well. IdeallydaApplicationIntiatorResponderMode
wouldn't it as an argument, other protocols don't need to pass similar information if I recall correctly.The text was updated successfully, but these errors were encountered: