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

Add method to delete channel state while online #2884

Closed
domZippilli opened this issue Feb 7, 2024 · 0 comments · Fixed by #2964
Closed

Add method to delete channel state while online #2884

domZippilli opened this issue Feb 7, 2024 · 0 comments · Fixed by #2964
Milestone

Comments

@domZippilli
Copy link
Contributor

domZippilli commented Feb 7, 2024

Currently, the only way to archive/delete a channel monitor is to delete it while the node is offline, or at least before the node has loaded the monitor into memory and passed references to the ChainMonitor/ChannelManager, etc.

This is because even if you delete the monitor, the node will re-write it on every block connect if it is still running with the monitor in memory.

Please add a way to evict/prune a monitor from memory. Ideally this would also be a good time to validate that the monitor is safe to delete, but from previous discussion I understand this is hard to be certain about, so such a method will certainly put responsibility on the caller to validate conditions such that it's safe to let the channel go.

ref Discord: https://discord.com/channels/915026692102316113/915026887066132481/1204863912051220600

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

Successfully merging a pull request may close this issue.

2 participants