Skip to content

Channels stuck on wainting_close_channels but final txs have been confirmed. #3029

@sebareca

Description

@sebareca

Background

I closed some channels a long time ago but they are stuck on waiting_close_channels
and the "unlocked" funds don't appear as unconfirmed or confirmed balance in the lnd wallet.
The corresponding final transactions have been confirmed a long time ago.

Your environment

  • version of lnd= 0.6.0-beta
  • operating system = Linux ip-10-2-11-182 4.15.0-1035-aws Light-152 multihop routing #37-Ubuntu SMP Mon Mar 18 16:15:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • bitcoind = v0.16.0.0-g4b4d7eb255

Steps to reproduce

Close some channels.

Expected behaviour

eventually i should see the local balance of each closed channel as wallet balance and
lnd should stop waiting for the final transactions.

Actual behaviour

Response of pendingchannels:

{
    "total_limbo_balance": "68930941",
    "pending_open_channels": [
    ],
    "pending_closing_channels": [
    ],
    "pending_force_closing_channels": [
    ],
    "waiting_close_channels": [
        {
            "channel": {
                "remote_node_pub": "021c97a90a411ff2b10dc2a8e32de2f29d2fa49d41bfbb52bd416e460db0747d0d",
                "channel_point": "67db75d7700d2a2db8ffddd11441193cb9416b6ae8229e06ac8f5c97adc42a48:0",
                "capacity": "16777215",
                "local_balance": "16761438",
                "remote_balance": "0"
            },
            "limbo_balance": "16761438"
        },
        {
            "channel": {
                "remote_node_pub": "02bebaf15c038fa52a59eb5870cd3b6cb3af6b38b91c316243805df8a2dbd20d3c",
                "channel_point": "81ea221e0ddad70d5046946e89a0e5ba1b2c0b2cbd779afa676013d2181ec291:0",
                "capacity": "16777215",
                "local_balance": "16755285",
                "remote_balance": "0"
            },
            "limbo_balance": "16755285"
        },
        {
            "channel": {
                "remote_node_pub": "0330f0afe893e809d8790b26b40d9353f586ef0894d4ae704d06be24538c030457",
                "channel_point": "b852772aef9d648510978e3ad01a8ed0808dc27e34e426e90337a4f326827e31:1",
                "capacity": "16777215",
                "local_balance": "16764873",
                "remote_balance": "0"
            },
            "limbo_balance": "16764873"
        },
        {
            "channel": {
                "remote_node_pub": "0390b5d4492dc2f5318e5233ab2cebf6d48914881a33ef6a9c6bcdbb433ad986d0",
                "channel_point": "3c7cb2e054fb54a257503d1027c4d5a0ff2b42a25fa1132b1f62960838630b33:0",
                "capacity": "1900000",
                "local_balance": "1882271",
                "remote_balance": "0"
            },
            "limbo_balance": "1882271"
        },
        {
            "channel": {
                "remote_node_pub": "03df3f0a2fd6bea5429a596461ce784c922b2981ada1af89cfefcd9ccfb16c16a7",
                "channel_point": "c84288de1860aae9f18a68482e16e65a0eb1289d4c4151acea6d06101d54da3f:0",
                "capacity": "16777215",
                "local_balance": "16767074",
                "remote_balance": "0"
            },
            "limbo_balance": "16767074"
        }
    ]
}

this is one of the peding channels.

  {
            "channel": {
                "remote_node_pub": "021c97a90a411ff2b10dc2a8e32de2f29d2fa49d41bfbb52bd416e460db0747d0d",
                "channel_point": "67db75d7700d2a2db8ffddd11441193cb9416b6ae8229e06ac8f5c97adc42a48:0",
                "capacity": "16777215",
                "local_balance": "16761438",
                "remote_balance": "0"
            },
            "limbo_balance": "16761438"
        },

the funding tx: https://www.blockchain.com/btc/tx/67db75d7700d2a2db8ffddd11441193cb9416b6ae8229e06ac8f5c97adc42a48

The closing tx:
https://www.blockchain.com/btc/tx/b02e9b0be768627bec12755daf649284d6dd153e83e71bc957cdadb311e3a9fd

the final tx description from listchaintxs:

{
            "tx_hash": "b02e9b0be768627bec12755daf649284d6dd153e83e71bc957cdadb311e3a9fd",
            "amount": "0",
            "num_confirmations": 1177,
            "block_hash": "00000000000000000013e444271bf52065cf4a87bc5b4fd09957e7a4d4282910",
            "block_height": 572773,
            "time_stamp": "1555948944",
            "total_fees": "0",
            "dest_addresses": [
                "bc1q4turnl6sv0qwk02mh30cldjuwx89k7h0ue3k7q",
                "bc1qvqzfqe4l4rff3pgs9s8h585ussl8h3zg4q5du68qqeq3adp4cagqyehggy"
            ]
        },

Metadata

Metadata

Assignees

Labels

P2should be fixed if one has timebugUnintended code behaviourchannel closingRelated to the closing of channels cooperatively and uncooperativelynotifications

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions