lightning icon indicating copy to clipboard operation
lightning copied to clipboard

min-emergency-msat requirement even with zero channels open

Open miketwenty1 opened this issue 1 year ago • 4 comments

Issue and Steps to Reproduce

getinfo output

~/.lightning$ lightning-cli getinfo
{
   "id": "033db47ac0c48fdcc94b7662852e740916d5ad79ee1bdebddd13bfeedc1dab3e04",
   "alias": "YELLOWWAFFLE",
   "color": "033db4",
   "num_peers": 1,
   "num_pending_channels": 0,
   "num_active_channels": 0,
   "num_inactive_channels": 1,
   "address": [],
   "binding": [
      {
         "type": "ipv6",
         "address": "::",
         "port": 9735
      },
      {
         "type": "ipv4",
         "address": "0.0.0.0",
         "port": 9735
      }
   ],
   "version": "v24.02.2",
   "blockheight": 842888,
   "network": "bitcoin",
   "fees_collected_msat": 0,
   "lightning-dir": "/home/ubuntu/.lightning/bitcoin",
   "our_features": {
      "init": "08a0800a8a59a1",
      "node": "88a0800a8a59a1",
      "channel": "",
      "invoice": "02000002024100"
   }
}

Steps to reproduce:

  • Spin up 2 core LN nodes.
  • send 250k sat utxo to 1 node.
  • setup a channel for roughly 222k sats between them. (minus fees and forces me to keep a reserve 25k sat utxo)?
  • make bolt 12 payments / offers but not enough to justify a utxo on the receivers side.
  • mutual close.
  • try withdraw addr amount -> get errors about min-emergency-msat try setting min-emergency-msat to 0 but needs to be over dust limit.
  • set config to 546 and do a withdraw.
  • pollute utxo set with dust.

Note:

  • "num_inactive_channels": 1,

Might be related: (But I think this is when channels are still open)?

https://github.com/ElementsProject/lightning/issues/7131

miketwenty1 avatar May 10 '24 19:05 miketwenty1

@ddustin tagging myself so I can find it again

ddustin avatar May 13 '24 20:05 ddustin

Wait 100 blocks, so it's fully settled. We don't know for sure that the channel will not get double-spent. We could relax this, I guess?

rustyrussell avatar May 14 '24 03:05 rustyrussell

Developers: How can we make lots of people waste 100x more time than 25k sat are worth? 🤔 Let's use non-standard wallet recovery format and set arbitrary withdrawal limit.

It could have been worse, so thanks for not making it 250k :)

epoberezkin avatar Jul 07 '24 15:07 epoberezkin

Joking aside, I really appreciate your work - competition is very important (this is not sarcasm), but I think that at the current stage CLN should be positioned as highly experimental and only usable for people who:

  1. understand how lightning network works very well
  2. used LND before and know why they want to use CLN, and can articulate the difference
  3. more technical than average.

The rest (myself included) would thank you for strongly recommending to use LND for now.

epoberezkin avatar Jul 07 '24 15:07 epoberezkin