Bitcoin Forum
May 08, 2024, 07:44:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightning-C - coins in limbo [RESOLVED]  (Read 110 times)
enquirer (OP)
Sr. Member
****
Offline Offline

Activity: 306
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?
1715154242
Hero Member
*
Offline Offline

Posts: 1715154242

View Profile Personal Message (Offline)

Ignore
1715154242
Reply with quote  #2

1715154242
Report to moderator
1715154242
Hero Member
*
Offline Offline

Posts: 1715154242

View Profile Personal Message (Offline)

Ignore
1715154242
Reply with quote  #2

1715154242
Report to moderator
1715154242
Hero Member
*
Offline Offline

Posts: 1715154242

View Profile Personal Message (Offline)

Ignore
1715154242
Reply with quote  #2

1715154242
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
airfinex
Full Member
***
Offline Offline

Activity: 151
Merit: 102



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: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
enquirer (OP)
Sr. Member
****
Offline Offline

Activity: 306
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!