-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to pay but getting "WIRE_TEMPORARY_CHANNEL_FAILURE: Capacity exceeded" error. #1031
Comments
Your version predates #993, which will make You can do either of the below:
To close your channels, use |
Also: how much are you paying? If you are paying more than 4 mBTC (or more like 3.96 mBTC, perhaps) you cannot pay; your larger channel is only 4mBTC, and that limits your payment ability. |
Thanks for the replies. The tee is 28.99 USD = 2.64562385 mBTC which should be covered by my 4mBTC channel? I actually managed to buy a couple of stickers yesterday on the first channel I created, which went through fine, however trying to buy the tee it always errors so I assumed that I didn't have enough funds and created the seperate channel. But that didn't resolve my error. How do I upgrade to master? Sorry for noob questions but lightning is new to me but I am curious to test so followed the Medium article ( https://medium.com/@dougvk/run-your-own-mainnet-lightning-node-2d2eab628a8b ) in setting up a node on mainnet. |
Your other channel has only 1.34 mBTC or so, so not enough. Updating to latest master... unfortunately the instructions use docker, which I do not know how to use. It uses @cdecker's docker, though, so maybe he can give instructions? For now, if you really want the product, just keep repeating the pay command quickly --- failed channels are marked internally for 20 seconds so they will not be reused for routing. You should be getting a variety of failures until you succeed, but as long as the |
Thanks again. When doing transaction can I specify which channel to pay from? I'm assuming now that the money is not taken from both channels. When I did the transaction I only typed: Anyway I've now tried to close the channels as I'm thinking to close them both then reopen one new one with the total BTC from both channels. When I closed the channels I typed: From closing the channels do you know how long it will be until I see the BTC in my wallet? bitcoin-cli getwalletinfo is currently showing 0: { lightning-cli listpeers currently shows: lightning-cli listpeers |
|
Thank you. I'll see what happens over the next 24 hours. |
Note that it will appear in the lightning wallet, not in the bitcoind wallet. Use |
Oh okay thanks. I didn't realise that. i'll keep checking that one. |
@ZmnSCPxj kicking docker hub to update to latest |
@cdecker thank you very much. Can you share instructions with @Incertainty how to update the install to latest from your docker? |
A |
Thanks @ZmnSCPxj and @cdecker for all advice so far in helping me bag this tee, its been a good learning experience for me. In summary here is the situation now, still tee-less: lightning-cli listfunds Does this mean that both my channels have now successfully closed and funds returned to my lightning wallet? (48753 + 399368 + 133492 = 581,613 satoshis) I guess I have a number of options now:
Basically considering the instructions in that article how would I be best to integrate an upgrade to master? |
If your goal is the tee, than option 3 should be good; payment will still work on non-master with a direct channel, it is the indirect routes when you have a depleted direct channels that are a bit iffy if you are not on latest. (incidentally, most command lines let you easily repeat old commands by using the up-arrow key in your keyboard, so if you are still unable to update to latest master, next time |
Thanks. Yes the unltinate goal is the tee and to learn more about Lightning. I managed to purchase the stickers so it confused me how my second purchase for the tee failed. Anyway is my assumption about how many satoshis I have in my lightning wallet correct? I can add all these to funding a new channel? I will try option 3 tonight when back from work. Incidentally is there a direct channel to Blockstream Store or a way to find the nearest channel? |
If you go connect to Blockstream and fundchannel directly to them, then you have a direct channel to Blockstream. I believe @cdecker tweeted the node pubkey and the address of Blockstream. Edit: here: https://twitter.com/snyke/status/953428932866560001?lang=en (c-lightning currently has a limitation that it can only allow one channel per peer at a time. this will not affect you, as, you have no channels now, but you should be aware of this fact if later you want to transfer more funds over the LN. this is not an onerous limitation as in general your risk is better spread if you have channels to multiple different peers than if you have multiple channels to a single "hub" peer) The number of satoshi is correct, although you need to manually specify how much of those to put into a channel. |
@Incertainty I was referring to you having the following in your initial
that makes sure that your |
@cdecker thanks that is correct. The complete command line I used was: docker run --rm --name lightning --network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/root/.bitcoin -v /scratch/bitcoin/mainnet/clightning:/root/.lightning --entrypoint /usr/bin/lightningd cdecker/lightningd:master --network=bitcoin --log-level=debug |
Update to master appears to have gone okay: docker pull cdecker/lightningd:latest docker ps docker stop f32535f850fd Then I restarted the containers: docker ps Will open a new channel add 550,000 satoshis and retry purchase. |
@ZmnSCPxj @cdecker many thanks to you both. Payment was instant and successful this time. Looking forward to the tee and stickers arriving. :) Incidently, and my last question, now that I have a lightning node running, can I name it or assign it an alias? When I look at https://lnmainnet.gaben.win they all have names. |
@Incertainty that's great news, glad it worked out in the end. Your node already has a randomly generated name, you can use |
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
"Allow nodes to overshoot the MPP `total_msat` when paying (ElementsProject#1031)" Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: Protocol: Allow slight overpaying, even with MPP, as spec now recommends.
I am trying to buy a tee from the Blockstream Store however I am getting the above error whenever I execute lightning-cli pay. The full error message is:
lightning-cli listpeers shows:
And lightning-cli listfunds shows:
lightning-cli getinfo returns:
Do I not have enough funds? Or what am I doing wrong?
Also how do I close the channels and return my Bitcoin back to my wallet?
The text was updated successfully, but these errors were encountered: