RGB-Tools / RGB-Tools/rgb-lightning-node
Swaps gets stuck on pending
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 50
- Forks
- 48
- Avg merge
- 8h 52m
- Merged PRs (30d)
- 2
Description
I faced strange problem testing rapid swaps, after some points, swaps got stuck on PENDING state, the maker execute returned 200, but swaps never succeed/expired/failed.
From this I can assume the RLN never marks the swaps that are in pending state as expired even the expiry time has passed, I'll open a fix PR for this.
I also tried to find out why the swaps were stuck on pending and not failing/succeeding, but up to now I didn't find any thing, so can you please help me on this one? (probably could be an edge case)
I attached the directory of taker and maker both below, this happened on 2026-04-13 if you want to check.
Keep in mind that in between you are going to see some failed ones, pending stuck starts before, I don't think they are relevant.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or usable log is provided. Start by reproducing rapid swaps and inspect the RLN handling of pending swaps after their expiry time, using the maker and taker directories if available. Done means identifying why swaps remain pending and adding a verified fix or regression coverage for expiry handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100