Skip to content

Add closing_txid to WaitingCloseChannel rpc #3234

@stridentbean

Description

@stridentbean

Background

I am trying to parse through my transactions using listchaintxns. I am unable to determine the difference between a waiting close channel and an incoming on chain transaction with zero confirmations.

Both ForceClosedChannel and ClosedChannel contain closing_txid already. It makes sense to add closing_txid to WaitingCloseChannel as well.

Your environment

  • version of lnd
    0.6.1-beta commit=v0.6.1-beta
  • which operating system (uname -a on *Nix)
    Linux lnd 4.14.70-v7+ Fixing some README typos #2 SMP Wed Sep 19 07:49:26 UTC 2018 armv7l Linux
  • version of btcd, bitcoind, or other backend
    bitcoind: 0.17.0
  • any other relevant environment details
    bitcoind and lnd are running in docker containers
    raspberry pi 3b+

Steps to reproduce

  1. Open a channel with anyone
  2. Wait for channel to be fully confimed
  3. Generate new address
  4. Send a transaction to newly created address
  5. Close channel before the transaction from step 4 is confirmed
  6. run lncli listchaintxns and try to determine which of the two unconfirmed transactions is a channel close

Expected behaviour

Should be able to determine which transactions are for closing channels.

Actual behaviour

Unable to determine which transactions are for closing channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havechannel closingRelated to the closing of channels cooperatively and uncooperativelyenhancementImprovements to existing features / behaviourrpcRelated to the RPC interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions