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

Remove invalid channel updates from DB at startup #2379

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Aug 11, 2022

Following #2361, we reject channel updates that don't contain the htlc_maximum_msat field. However, the network DB may contain such channel updates, that we need to remove when starting up.

I've checked what we have in our network DB on the ACINQ node before opening that PR. We have ~100 channel updates that don't contain an htlc_maximum_msat, but all of them except one are completely outdated (from before 2020), which indicates that we have a pruning bug that I'll fix in a separate PR. The only non-outdated invalid channel update that we have is a 22,222 sat channel between a node called dontconnect and a node called Sybil: https://1ml.com/channel/588047405915373568

So we can pretty much ignore it.

Following #2361, we reject channel updates that don't contain the
`htlc_maximum_msat` field. However, the network DB may contain such
channel updates, that we need to remove when starting up.
@t-bast t-bast requested a review from sstone August 11, 2022 13:44
Copy link
Member

@sstone sstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few nits

@t-bast t-bast merged commit e8dda28 into master Aug 11, 2022
@t-bast t-bast deleted the prune-channel-updates-without-htlc-max branch August 11, 2022 15:18
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.

2 participants