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

Make feerates resolution asynchronous #654

Merged
merged 1 commit into from
May 31, 2024
Merged

Make feerates resolution asynchronous #654

merged 1 commit into from
May 31, 2024

Conversation

pm47
Copy link
Member

@pm47 pm47 commented May 30, 2024

Instead of waiting for feerates to be available before processing any channel command, we just pass the StateFlow to the ChannelContext and will attempt to get feerates only when needed.

If feerates are not available, the ChannelState.process function will hang. Previously, the hanging would have happened in the Peer.

@pm47 pm47 requested a review from t-bast May 30, 2024 16:54
t-bast
t-bast previously approved these changes May 30, 2024
Instead of waiting for feerates to be available before processing any
channel command, we just pass the `StateFlow` to the `ChannelContext`
and will attempt to get feerates only when needed.

If feerates are not available, the `ChannelState.process` function will
hang. Previously, the hanging would have happened in the `Peer`.
@pm47 pm47 dismissed t-bast’s stale review May 31, 2024 08:00

The merge-base changed after approval.

@pm47 pm47 force-pushed the async-feerates branch from 976dcfb to 5dd2523 Compare May 31, 2024 08:00
@pm47 pm47 requested a review from t-bast May 31, 2024 08:01
@pm47 pm47 merged commit db29bfe into master May 31, 2024
2 checks passed
@pm47 pm47 deleted the async-feerates branch May 31, 2024 08:37
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.

2 participants