Bitcoin Forum
July 27, 2021, 12:48:22 PM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightning-C - coins in limbo [RESOLVED]  (Read 88 times)
enquirer
Sr. Member
****
Offline Offline

Activity: 302
Merit: 257


View Profile
March 17, 2021, 04:16:50 PM
Last edit: March 19, 2021, 08:33:03 AM by enquirer
Merited by hugeblack (4)
 #1

I issued a withdraw command with low fee, and the transaction was broadcasted, but miners didn't include it in blocks. But I can't withdraw again with a higher fee, it gives me error 301 - the coins have been marked as "spent". Listfunds shows empty wallet. The question is how to salvage the coins.
Should I clear bitcoind's mempool, will it help?
1627390102
Hero Member
*
Offline Offline

Posts: 1627390102

View Profile Personal Message (Offline)

Ignore
1627390102
Reply with quote  #2

1627390102
Report to moderator
1627390102
Hero Member
*
Offline Offline

Posts: 1627390102

View Profile Personal Message (Offline)

Ignore
1627390102
Reply with quote  #2

1627390102
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
airfinex
Jr. Member
*
Offline Offline

Activity: 56
Merit: 37


View Profile
March 17, 2021, 04:35:26 PM
 #2

specifically, "withdraw" command doesn't work for me
maybe "You're getting the error because the command line client can't connect your node. It could be because the node itself is not running, or because the node is not reachable from your host (ex: docker not exposing the right ports)".
BitMaxz
Legendary
*
Offline Offline

Activity: 2226
Merit: 1663


Lock down again :(


View Profile
March 17, 2021, 04:47:56 PM
 #3

What error exactly do you see after you use the "withdraw" command?

You can try the GitHub link below to ask some questions about c-lightning below.

- https://github.com/ElementsProject/lightning/issues

BitMaxz
Legendary
*
Offline Offline

Activity: 2226
Merit: 1663


Lock down again :(


View Profile
March 18, 2021, 11:44:20 PM
 #4

I issued a withdraw command with low fee, and the transaction was broadcasted, but miners didn't include it in blocks. But I can't withdraw again with a higher fee, it gives me error 301 - the coins have been marked as "spent". Listfunds shows empty wallet. The question is how to salvage the coins.
Should I clear bitcoind's mempool, will it help?

According to their Github(c-lightning) this error "301: There are not enough funds in the internal wallet (including fees) to create the transaction."

So it means you don't have enough funds when you are trying to withdraw. Read the error from here https://lightning.readthedocs.io/lightning-fundchannel.7.html


What exactly command do you use can share it here

Then try this command in your lightning cli

Code:
lightning-cli listfunds

post the result here

enquirer
Sr. Member
****
Offline Offline

Activity: 302
Merit: 257


View Profile
March 19, 2021, 08:30:07 AM
Merited by Rath_ (2), hugeblack (1)
 #5

So I resolved the issue in this way:

1) Waited until the tx cleared from all mempools around the internet. blockcypher.com is handy for keeping track of that.
2) Now the tx is only in my local bitcoind's mempool. Stopped lightningd and bitcoind, deleted mempool.dat and restarted.
3) Issued "lightning-cli dev-rescan-outputs" command and now coins are back!
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!