Skip to content

recovery/btcwallet: detect funds in tweakless/static_remote output addresses on wallet recovery #4778

Open
@statusquont

Description

@statusquont

Background

I had LND via MyNodeBTC with 3 open channels. The RaspberryPi device with myNode got stolen. I have the seed and a recent channel.backup file. I also have a recent screenshot (RTL) of with channel peer names and the balances.

I downloaded a new copy of myNode for VMWare, resynced the blockchain, restored the LND wallet with seed and channel.backup file. Immediately after restoring from backup, one of the 3 channels (with LNBig https://1ml.com/channel/666722960468934656) broadcast a Remote Force Close transaction (08602f9722dc56cc7ecd5c1b5bd9a4faa67fa8b9e152efcd595ee4d30e8fea0f). All those sats (minus fees) came back to the LND hot wallet as expected.

The 2 other channels did not.

For a few days there were 14 peers (some quite old) listed within RTL under Connections > Channels > Pending > Waiting Close. Those have all since moved over to Connections > Channels > Closed. There are no other channels in any other section of RTL.

The sats from the 2 "stuck" channels have not been returned to the wallet yet. I had reached out to those peers to ask them to close the channel from their side (since I couldn't see any way to do it from my end) which they did. According to those peers the closing tx's are as follows:

Channel: https://1ml.com/channel/698115116873875457
TXID: 2c9d90f23f458f44530514835428f7bacd280ec99e9d2583e2e422b2b23ae7db
Previous outbound liquidity channel balance: 933,626 sats

Channel: https://1ml.com/channel/687950131854508032
TXID: 5ce8c15322f82bfc3f180a13afe2f58ab222e095e533f60068498d943456aea2
Previous outbound liquidity channel balance: 765,789 sats

Since one of the channels was with Bitfinex, I reached out to their support team for additional help. According to them the 933,626 sats were supposed to be released as of block 657,312. I'm not entirely sure why that was the block height they provided (exactly 600 after tx block?), but regardless, the sats are not showing up in the wallet, either RTL or the CLI and that block has since past.

Your environment

  • version of lnd - v0.11.0-beta
  • which operating system (uname -a on *Nix) - Debian/RaspOS via VM VirtualBox
  • version of btcd, bitcoind, or other backend - 0.20.1
  • any other relevant environment details

Expected behaviour

It would be great if there was a command available to figure out where all of a users sats are. Be it in active channels, the hot wallet, or in limbo on-chain pending some block/time.

Actual behaviour

I currently have no idea if/when the 1,699,415 will ever return to the wallet. It's not a life-changing amount, but since I am dealing with a scenario where the node is no longer in my possession, it would be great to know how much longer I should be expecting to wait so I could decide to move funds now, or wait X more hours to sweep all.

Any help here in determining if/when the funds will actually return would be greatly appreciated! And if I left out any important details, please do let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2should be fixed if one has timeenhancementImprovements to existing features / behaviourfeature requestRequests for new featuresrecoveryRelated to the backup/restoration of LND data (e.g. wallet seeds)walletThe wallet (lnwallet) which LND uses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions