BlueWallet / LndHub

Wrapper for Lightning Network Daemon. It provides separate accounts for end-users
http://LndHub.io
MIT License
765 stars 191 forks source link

Invoice payment stuck #9

Closed corbelantoine closed 5 years ago

corbelantoine commented 5 years ago

Issue raised on Lnd github page and redirected here: https://github.com/lightningnetwork/lnd/issues/2524

Background

I have a direct channel opened to BlueWallet's node (03021c5f5f57322740e4ee6936452add19dc7ea7ccf90635f95119ab82a62ae268). The channel is sufficiently funded and the connexion is not broken: lncli connect 03021c5f5f57322740e4ee6936452add19dc7ea7ccf90635f95119ab82a62ae268@207.180.244.165:9735 [lncli] rpc error: code = Unknown desc = already connected to peer: 127.0.0.1:33862 --> I'm using reverse port forwarding as a proxy

Your environment

Steps to reproduce

Create an invoice on bluewallet app: lnbc1u1pwyvyhypp5mzretv6qjjg3c2s50sws6nnepua473n4lf6ruqsm0aruh7flspasdq823jhxaqcqzysfsmkfs7qgw3v557fs20h4xrj5kma9wfmd57snx2kxxkutysdx3ws8ez0qjl7crla93vsnr4sgtp9u537cwh3pqtv0t3srm3qcnwzaecpgvenqc

lncli payinvoice XXX...

Expected behaviour

Payment should be paid instantly.

Actual behaviour

lncli payinvoice lnbc1u1pwyvyhypp5mzretv6qjjg3c2s50sws6nnepua473n4lf6ruqsm0aruh7flspasdq823jhxaqcqzysfsmkfs7qgw3v557fs20h4xrj5kma9wfmd57snx2kxxkutysdx3ws8ez0qjl7crla93vsnr4sgtp9u537cwh3pqtv0t3srm3qcnwzaecpgvenqc Description: Test Amount (in satoshis): 100 Destination: 03021c5f5f57322740e4ee6936452add19dc7ea7ccf90635f95119ab82a62ae268 Confirm payment (yes/no): yes

Payment stuck here. No log being displayed (as INFO). While this is stuck I could send some sats to the app "Wallet of Satoshi" and pay the same invoice from there. This also happened yesterday, I wanted to wait in case it was a network issue.

State of the channel: "capacity": "450000", "local_balance": "45950", "remote_balance": "403604", "commit_fee": "446", "commit_weight": "724", "fee_per_kw": "616", "unsettled_balance": "0", "total_satoshis_sent": "403604", "total_satoshis_received": "0", "num_updates": "2", "pending_htlcs": [ ], "csv_delay": 144, "private": false

Overtorment commented 5 years ago

Hello! I see your channel had at least one successfull update since you posted:

            "capacity": "450000",
            "local_balance": "403604",
            "remote_balance": "44643",
            "commit_fee": "1753",
            "commit_weight": "724",
            "fee_per_kw": "2421",
            "unsettled_balance": "0",
            "total_satoshis_sent": "0",
            "total_satoshis_received": "403604",
            "num_updates": "3",
            "pending_htlcs": [
            ],
            "csv_delay": 144,
            "private": false
        },

LND is known to be a bit "frisky", sometimes it stops operating without very noticeable signs, so even payments through direct channel wont go through. Quick fix is to restart the node (I do it regularly for our node). LND is expected to introduce more 'health' metrics in further releases.

Signs of LND needing a restart:

Overtorment commented 5 years ago

LMK how it goes

corbelantoine commented 5 years ago

I just restarted my node and jumped from 2 to 6 updates. I think I was stuck at the 3rd payment because you updated and I didn't. For a short moment I could see the pending htlc appear. Are you also using LND? I'm closing this issue because it is definitely an issue with LND.

Overtorment commented 5 years ago

Thanks for the update!

On Wed, 23 Jan 2019 at 01:47, corbel_a notifications@github.com wrote:

Closed #9 https://github.com/BlueWallet/LndHub/issues/9.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BlueWallet/LndHub/issues/9#event-2090444709, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0x-RBURG_HsZcM0cezBOOOHzsVPDAKks5vF79FgaJpZM4aLmXP .