Skip to content
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

Update for ElectrumClient rework #418

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Update for ElectrumClient rework #418

merged 3 commits into from
Sep 13, 2023

Conversation

dpad85
Copy link
Member

@dpad85 dpad85 commented Sep 13, 2023

The ElectrumClient has been reworked in ACINQ/lightning-kmp#512, fixing several issues and generally improving the reliability of the client. The impact on Phoenix codebase is small.

@robbiehanson A notable addition is the timeout to connect (default is 15s, and for now we use that value).

Also note that the connectionState flow has been removed, the client now exposes a flow of ElectrumConnectionStatus - that can be easily converted to a more generic Connection object.

This has been successfully tested on Android and iOS, and can be merged as-is. However the nature of the issues and the fixes provided by this rework means that we'll have to keep an eye on this.

- connection state is derived from ElectrumConnectionStatus
- blockheight is needed to get a tx confirmation state
- the socket builder is moved to the `connect` method

Several methods have been commented in the Android/iOS UI for now.
@dpad85 dpad85 merged commit baff3b0 into master Sep 13, 2023
@dpad85 dpad85 deleted the electrum-client-rework branch September 13, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant