Bitcoin Forum
May 04, 2024, 05:45:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Solved] Closing a channel in c-lightning  (Read 63 times)
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
January 12, 2021, 10:58:16 PM
Last edit: January 13, 2021, 03:19:41 PM by darkv0rt3x
 #1

Hello.

I tried to open a channel in my c-lightning node but something went wrong.
I got this message:

Code:
{
   "code": -1,
   "message": "Error broadcasting transaction: error code: -26\\nerror message:\\nmempool min fee not met, 328 < 650. Unsent tx discarded 0200000000010479ed1741cc02a629b0a09d3690d266c304d7da5b8ecb...............

(The dots replace an very big hash string)

However, the channel went to "Opening" state. I could see the state in my Spark Wallet and also in the listfunds option of c-lightning, but I think the on-chain transaction never took place. I checked in a block explorer with the funding txid and nothing is found.

So, I was suggested (by a main c-lightning dev) to close the channel and I used the command lightning-cli close to try to close it.
The command used was:
Code:
lightning-cli close channelID 300 returnAddress 0

The channel is now on AWAITING_UNILATERAL but in the meantime, the same person suggested me to use dev-forget-channel but my c-lightning doesn't recognize this command.

So, in this case, that the funding transaction never hit the blockchain but somehow the channel went to OPENNING state and then to AWAITING UNILATERAL, what should/can I do???

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
1714801530
Hero Member
*
Offline Offline

Posts: 1714801530

View Profile Personal Message (Offline)

Ignore
1714801530
Reply with quote  #2

1714801530
Report to moderator
1714801530
Hero Member
*
Offline Offline

Posts: 1714801530

View Profile Personal Message (Offline)

Ignore
1714801530
Reply with quote  #2

1714801530
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714801530
Hero Member
*
Offline Offline

Posts: 1714801530

View Profile Personal Message (Offline)

Ignore
1714801530
Reply with quote  #2

1714801530
Report to moderator
1714801530
Hero Member
*
Offline Offline

Posts: 1714801530

View Profile Personal Message (Offline)

Ignore
1714801530
Reply with quote  #2

1714801530
Report to moderator
darkv0rt3x (OP)
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 658


I rather die on my feet than to live on my knees


View Profile
January 13, 2021, 02:54:13 PM
 #2

Ok, update.

I had to recompile the binary with developer option to be able to access that specific command:

Code:
./ configure --enable-developer

Then I just did:
Code:
./lightning-cli --dev-forget-channel IDhere

and it's done. Fixed.

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!