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 new command to clean height hint cache. #80

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ziggie1984
Copy link
Contributor

@ziggie1984 ziggie1984 commented Oct 2, 2023

A new command is introduced to help noderunners suffering from the problem in lightningnetwork/lnd#8028 where for reasons still not known yet the height hint cache for some spending notifications is poisoned with wrong data leading to unrecognized spends. A wrong height hint entry can lead to situations where channels are never resolved internally and the associated funds might also be stuck indefinitely.

This command should be a temporary fix until we find the real reason why invalid height hints are populated in the table.

How to use the new command:

In case you have channels which are still in the waiting_force_close state, just call the command in the following way:

chantools dropheighthintcache --channeldb channel.db

In case you want to rescan the blockchain for a specific output you need to execute the command in the following way:

chantools dropheighthintcache --channeldb channel.db --chan_point bd278162f9843311f64c76715c7a5c903c0467dc2c9f76af84ecbab00764c8a1:0

It was observed that the height hint cache is poisoned leading to
unresolved contracts in lnd. This command is a temporary fix for
node runners until the real reason for this behaviour is found.
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 this pull request may close these issues.

1 participant