min-emergency-msat requirement even with zero channels open
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
withdrawaddr amount -> get errors aboutmin-emergency-msattry 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
@ddustin tagging myself so I can find it again
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?
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 :)
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:
- understand how lightning network works very well
- used LND before and know why they want to use CLN, and can articulate the difference
- more technical than average.
The rest (myself included) would thank you for strongly recommending to use LND for now.