Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miketwenty1 opened this issue May 10, 2024 · 2 comments
Open

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

miketwenty1 opened this issue May 10, 2024 · 2 comments

Comments

@miketwenty1
Copy link

miketwenty1 commented May 10, 2024

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)?

#7131

@ddustin
Copy link
Collaborator

ddustin commented May 13, 2024

@ddustin tagging myself so I can find it again

@rustyrussell
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants