Move overseer messages to a subsystems messages
package
#4409
Labels
C-simple
Minor changes changes, no additional research needed. Good first issue/review.
good first issue
issues that are suitable for first-time contributors.
T-implementation
this issue/pr is a new feature or functionality.
Issue summary
While designing the statement distribution subsystem I've noticed that it needs to send messages to
Candidate Backing
subsystems, and after a look into theCandidate Backing
it will also need to send messages toStatement Distribution
Currently, in Gossamer we have packages contains a filed
message.go
that contains all the messages the subsystem can receive, and other packages that contains an inner package calledmessages
that holds a file calledmessages.go
that contains the messages.In a case where two subsystems should send messages to each other they need to import the receiving subsystem to be able to instantiate the message and sent, so if all the messages stay in the subsystem package this will create an cyclic import
Implementation details
messages
to avoid such case.Other information and links
Backing -> Statement Distribution
: link to the codeStatement Distribution -> Backing
: link to the codeAcceptance criteria
[] Move all the messages for each subsystems to the
messages
pkgThe text was updated successfully, but these errors were encountered: