DAL/Node: send/recv p2p messages (test subscribe & graft)
Context
This MR implements the main interaction handlers between Gossipsub worker and Octez-P2P. It:
- forwards output events from GS to Octez-P2p
- forwards messages received from Octez-p2p to GS
The integration is tested via a tezt test that triggers the exchange of Subscribe and Graft messages.
Note that the following features are currently WIP and will be addressed by the next MRs:
- Handling Connect/Disconnect/Kick directives from GS
- Handling Prune messages exchange (as is requires handling the peer <-> point association in the interconnection module)
Manually testing the MR
dune exec -- tezt/tests/main.exe --file dal.ml --title "Alpha: Testing DAL node (GS topic subscribe and graft)" --verbose
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Mohamed IGUERNLALA