Bitcoin Forum

Bitcoin => Wallet software => Topic started by: enquirer on March 17, 2021, 04:16:50 PM



Title: Lightning-C - coins in limbo [RESOLVED]
Post by: enquirer on March 17, 2021, 04:16:50 PM
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?


Title: Re: Where to ask questions about Lightning-C?
Post by: airfinex on March 17, 2021, 04:35:26 PM
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)".


Title: Re: Where to ask questions about Lightning-C?
Post by: BitMaxz on March 17, 2021, 04:47:56 PM
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


Title: Re: Where to ask questions about Lightning-C?
Post by: BitMaxz on March 18, 2021, 11:44:20 PM
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


Title: Re: Where to ask questions about Lightning-C?
Post by: enquirer on March 19, 2021, 08:30:07 AM
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!