ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.78k stars 875 forks source link

min-emergency-msat requirement even with zero channels open #7301

Open miketwenty1 opened 1 month ago

miketwenty1 commented 1 month ago

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:

Note:

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

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

ddustin commented 1 month ago

@ddustin tagging myself so I can find it again

rustyrussell commented 1 month ago

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?