Skip to content

Funds stuck in limbo after incorrect order of fundchannel_* RPC calls #2983

Description

@meeDamian

Issue and Steps to Reproduce

As an attempt to do what #1936 aims to streamline:

  1. Run lightning-cli fundchannel_start
  2. Create & broadcast BTC transaction
  3. Run lightning-cli fundchannel_complete with non-zero delay

getinfo output

{
  "id": "032260c3b64b471b7eb0630b4af5d07ca94ff4e759573cbbe1bfb25845c375ed6e",
  "alias": "lncm-dm-1",
  "color": "ef4e91",
  "num_peers": 32,
  "num_pending_channels": 19,
  "num_active_channels": 13,
  "num_inactive_channels": 0,
  "address": [
    {
      "type": "ipv4",
      "address": "203.150.177.97",
      "port": 9735
    },
    {
      "type": "torv3",
      "address": "o3s5j4j37nbyzgvbngn3ahpmttvviyensw34klhqzw7in7vfzz646lqd.onion",
      "port": 9735
    }
  ],
  "binding": [
    {
      "type": "ipv4",
      "address": "192.168.0.201",
      "port": 9735
    },
    {
      "type": "ipv4",
      "address": "127.0.0.1",
      "port": 9735
    }
  ],
  "version": "v0.7.1",
  "blockheight": 591066,
  "network": "bitcoin",
  "msatoshi_fees_collected": 2083,
  "fees_collected_msat": "2083msat"
}

More details here: https://bitcoin.stackexchange.com/q/89817/9223

Some thoughts:

  • Perhaps fundchannel_complete could be renamed to something along the lines of:

    • _commit
    • _ensure
    • _preconfirm
    • _confirm
    • _confirmcommit
  • Perhaps wording in help fundchannel_complete should be changed to:

    Note that the funding transaction should not MUST NOT be broadcast until…

PS. Funds still stuck here: 1e643a835a9d1b0d2d0066bfaec516e2f8c282f8968dc74c12c2e430c8be9721

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions