Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

LSPS2: DRY logic around getting next payment from queue - #135

Closed
johncantrell97 wants to merge 3 commits into
lightningdevkit:mainfrom
johncantrell97:dry-payment-queue-pop
Closed

LSPS2: DRY logic around getting next payment from queue #135
johncantrell97 wants to merge 3 commits into
lightningdevkit:mainfrom
johncantrell97:dry-payment-queue-pop

Conversation

@johncantrell97

@johncantrell97 johncantrell97 commented May 15, 2024

Copy link
Copy Markdown
Contributor

Based on #137

In htlc_intercepted, htlc_handling_failed, channel_ready, and payment_forwarded (in #134) we try to get a payment from the queue and construct the new state and a forward payment action from it. The code is identical in all four cases so this extracts it to a single function.

@johncantrell97
johncantrell97 force-pushed the dry-payment-queue-pop branch 3 times, most recently from fa25cfd to 0513e0c Compare May 17, 2024 14:06
@johncantrell97
johncantrell97 force-pushed the dry-payment-queue-pop branch from 0513e0c to 5172df6 Compare May 17, 2024 15:44
@tnull

tnull commented Jan 6, 2025

Copy link
Copy Markdown
Collaborator

Closing this as I'm about to archive this repository in favor of https://github.com/lightningdevkit/rust-lightning/tree/main/lightning-liquidity.

Please re-open the PR over there.

@tnull tnull closed this Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants