spesmilo / spesmilo/electrum

Lightning channel stuck while opening due to low fee

Open
#7,306 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

I'm using Electrum from master branch. I tried to open a new channel to a node and set the fee manually using the static method. Looks like it wasn't enough because I've got this in the log (there were no GUI error messages and no transactions appeared at the history tab):

I | transaction | adding signature for <nodeid>
D | transaction | is_complete True
I/n | network | broadcast_transaction error [DO NOT TRUST THIS MESSAGE]: RPCError(1, 'the transaction was rejected by network rules.\n\ninsufficient fee, rejecting replacement e249d9
535bef20c16b4dc3338a6d313e69b2d606f2762851942769e0a4ba5d23; new feerate 0.00010000 BTC/kvB <= old feerate 0.00010000 BTC/kvB\n[...]')
I/n | network | error: could not broadcast open_channel e249d9535bef20c16b4dc3338a6d313e69b2d606f2762851942769e0a4ba5d23, insufficient fee
Your transaction is trying to replace another one in the mempool but it does not meet the rules to do so. Try to increase the fee.

I don't see the funding transaction in the history and it clearly hasn't been broadcasted (this txid isn't found on any block explorers). The channel now is stuck in REESTABLISHING peer state, I tried to force close it (unsuccessfully, because there's no funding tx). My balance is unchanged so the only problem is this stuck channel that I can't remove. lnd has abandonchannel command that I believe does exactly what I want, just remove it no questions asked... but I can't find anything like that in the Electrum console or GUI.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the low-fee channel-opening failure from the reported log and inspect how Electrum handles the channel's REESTABLISHING state. Review the Electrum console and GUI entry points related to channel management, using lnd's abandonchannel behavior as the requested reference. Done means a channel with no broadcast funding transaction can be removed cleanly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.