You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spec/p2p: Document reactors and the Reactor interface #599
Reactor is the generic name for a component that interacts with the p2p communication layer.
The interaction between a reactor and the p2p layer is in both directions. To become a reactor, the component has to implement the p2p.Reactor interface and register with the p2p layer. The p2p layer invokes invokes the reactor to process relevant events, for instance, to deliver incoming messages and to inform when it has established connections to peers. The reactor invokes the p2p layer to send message to peers and to control its operation, for instance, for disconnecting from a peer.
Definition of Done
This interaction is relatively complex and needs to be properly documented:
Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications. This document discusses how we can think about the system-level requirements that translate into requirements for p2p. The rest of #80 is less relevant for this issue, and we don't need to merge them soon, so we may close the PR once we have added the survey.
Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications.
I am not sure whether this should be part of this issue or of a different one, referring more specifically to the existing/standard reactors.
I would add that updating the documentation we have about reactors, under spec/p2p/messages could be an item to be considered as well either in this issue or in the above mentioned possible new issue.
Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications. This document discusses how we can think about the system-level requirements that translate into requirements for p2p. The rest of #80 is less relevant for this issue, and we don't need to merge them soon, so we may close the PR once we have added the survey.
Activity
[-]List existing types[/-][+]spec/p2p: Document reactors and the Reactor interface[/+]josef-widder commentedon Apr 3, 2023
Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications. This document discusses how we can think about the system-level requirements that translate into requirements for p2p. The rest of #80 is less relevant for this issue, and we don't need to merge them soon, so we may close the PR once we have added the survey.
cason commentedon Apr 25, 2023
I am not sure whether this should be part of this issue or of a different one, referring more specifically to the existing/standard reactors.
I would add that updating the documentation we have about reactors, under
spec/p2p/messagescould be an item to be considered as well either in this issue or in the above mentioned possible new issue.cason commentedon May 15, 2023
This issue was automatically closed with the merge of #714.
I am reopening since there are still work associated to it.
cason commentedon Jun 16, 2023
#598 (comment)