ElementsProject / ElementsProject/lightning

`fundchannel_cancel` hangs indefinitely on a peer's RBF'd second channel in `CHANNELD_AWAITING_LOCKIN` state with first channel in `CHANNELD_NORMAL` state

Open
#7,785 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
3.1k
Forks
1k
Avg merge
4d 10h
Merged PRs (30d)
13

Description

### Issue and Steps to Reproduce

1. Have one channel in `CHANNELD_NORMAL` state with a peer.
2. Propose to fund a second channel with that same peer using `fundchannel_start`.
3. Establish the second channel using `fundchannel_complete`.
4. Broadcast the signed funding transaction with a low fee rate.
5. Propose to fund a channel with some other peer using `fundchannel_start`.
6. Construct a transaction to fund the channel with the second peer, spending the same coin(s) as would be spent by the transaction of step 3 but using a higher fee rate.
7. Establish the channel with the second peer using `fundchannel_complete`.
8. Broadcast the second signed funding transaction, which replaces the first transaction.
9. Wait for confirmation of the second transaction.
10. Attempt to cancel the funding of the channel with the first peer using `fundchannel_cancel`.
11. `fundchannel_cancel` never returns.

### `getinfo` output
This is with CLN 24.08.2.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.