-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Improve reliability of peerd connections #792
Refactor: Improve reliability of peerd connections #792
Conversation
This allows us to consistently inform the user on the connection status of the swap. Peerd now emits Disconnected and Reconnected requests to farcasterd, which in turn can route them on to swapd.
The connect command now allows a user to manually trigger a connect for a restored swap that was previously unable to connect.
was calling colorize func, not swap_id itself
Handle Connect msg properly for running and restoring swapd Peerd: Add a Pong to our own hacky handshake Peerd: Only insert protocol messages to unchecked_msg_cache
Farcaster: Correct handling of restoring tsm connection
Ensure ConnectSuccess message is only expected for Taker swaps Handle new and failed connections in a coherent manner Trigger peerd termination externally, not internally
log swapids if awaiting connection
Peerd: Emit Reconnected only after checking cached messages Do not reconnect as a listener-spawned peerd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently testing swaps against fc.dev. This is my first round of review.
I can see this in my logs, not sure what triggers it and if it is related to this work or not:
[2022-11-29T10:18:23Z WARN farcaster_node::swapd::swap_state] Not on RefundSig state
This is happening as Bob.
This is unrelated, it's also logged on main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last round, mostly minor comments, feel free to discard the ones that you consider not important.
This includes: