Skip to content

Conversation

@ziggie1984
Copy link
Collaborator

@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