Skip to content

Lncli closeallchannels does not update my wallet balance #4354

@Davincij15

Description

@Davincij15

Background

So I am doing testing on lightning and trying different things to see if they work. I was testing the closing of channels and found that my balance did not update but I can see the transactions on-chain and mine are unspent.

./lncli closeallchannels --sat_per_byte 4

and here is the list of my closed channels

"channels": [
    {
        "channel_point": "0ad331c1708cbe85827cc11b7caa0c6cdf73f4c7a3eb0eb78343db884fb0c44c:1",
        "chan_id": "695713783583145985",
        "chain_hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
        "closing_tx_hash": "0f43732ad15ad84bea92b2b2b6290140ad8ed3cbd057878c2d0bfdb36cf90458",
        "remote_pubkey": "02237cf638160525ba849c7092271f6e11c41c659389bb55b1cb677255e065dc90",
        "capacity": "220070",
        "close_height": 633060,
        "settled_balance": "91180",
        "time_locked_balance": "0",
        "close_type": "COOPERATIVE_CLOSE",
        "open_initiator": "INITIATOR_LOCAL",
        "close_initiator": "INITIATOR_LOCAL"
    },
    {
        "channel_point": "a23a05a05273674b7af40998ff73f0f0dc3a655c6fa2e3dc2b9d624a4bba4bd8:0",
        "chan_id": "695703887921676288",
        "chain_hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
        "closing_tx_hash": "e18447232300e53a26d75a17c1c1d42e904d5ae5c01c6e0d8d1cfdc7c9b80b07",
        "remote_pubkey": "029a6c374e25af038d22a0bdfd8b064d66e7795205d2471c66012053aa1577959e",
        "capacity": "36871",
        "close_height": 633062,
        "settled_balance": "7646",
        "time_locked_balance": "0",
        "close_type": "COOPERATIVE_CLOSE",
        "open_initiator": "INITIATOR_LOCAL",
        "close_initiator": "INITIATOR_LOCAL"
    }
]

So I decided to restore my LND node from scratch (kept a backup) and see if it could find the transactions and as I was reading the log low and behold it did find the transactions BUT my balance did not change.

2020-06-04 23:24:51.735 [DBG] LNWL: Marking transaction 0f43732ad15ad84bea92b2b2b6290140ad8ed3cbd057878c2d0bfdb36cf90458 output 0 (0.0009118 BTC) spendable
2020-06-04 23:24:51.735 [DBG] LNWL: Marked address bc1qvlrqrg6k3c3rmjjc5x4f2gefnr5l7prnpr5250 used

2020-06-04 23:24:52.106 [DBG] LNWL: Marking transaction e18447232300e53a26d75a17c1c1d42e904d5ae5c01c6e0d8d1cfdc7c9b80b07 output 0 (0.00007646 BTC) spendable
2020-06-04 23:24:52.106 [DBG] LNWL: Marked address bc1qcwpqzkf0tsf9q4eultk5hljqnr5e6esjucay2z used

So clearly the money exists and I have the keys to them BUT!! I have no access to the bitcoin the system says I have.

Also before I did this I turned off autopilot before doing the close all channels.

I bet I am just not looking in the right spot for the money
I check the bitcoin node as well but that has always been empty.

Your environment

  • version of lnd
    Version: 0.10.99-beta
  • which operating system (uname -a on *Nix)
    Linux cs00 5.4.0-33-generic Light-152 multihop routing #37-Ubuntu
  • version of btcd, bitcoind, or other backend
    "version": 190001,
  • any other relevant environment details

Steps to reproduce

Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.

Expected behaviour

After closing the channel I expected Lncli to show me the pending balance that is not confirmed and the correct balance once confirmed.
./lncli walletbalance

Thanks
Davinci Jeremie
Davincij15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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