mycognosist / solar

A minimal Secure Scuttlebutt replication node.
Other
20 stars 2 forks source link

Extract dialer from scheduler #75

Closed mycognosist closed 1 year ago

mycognosist commented 1 year ago

This PR introduces the dialer actor module which listens for DialRequest messages emitted by the connection scheduler and dials peers accordingly.

The DialRequest messages currently include the public key and address of the peer to be dialed. In the next iteration, the address requirement will be removed. Instead, the dialer will receive the DialRequest message and use the public key of the peer to query the corresponding address from the address book.

Related to https://github.com/mycognosist/solar/issues/72