farcaster-node icon indicating copy to clipboard operation
farcaster-node copied to clipboard

Farcasterd connect refactor

Open TheCharlatan opened this issue 3 years ago • 0 comments

This is done with the goal of making the processing of make and take offer easier to read by removing most of the and_then statements and unnesting some of the logic.

Coincidentally, this also solves a bug where the peer services are not removed from the spawning_services HashSet and where the connect function might double-spawn a connection that has not said Hello to farcasterd yet.

Lastly, the swap state machine now checks during the transition from SwapdLaunched to SwapdRunning that that the peer connection is up and available before initializing the swap.

TheCharlatan avatar Aug 31 '22 13:08 TheCharlatan