Skip to content

channel_update/channel_announce/node_announcement are sent out of order #1636

@TheBlueMatt

Description

@TheBlueMatt

I don't see a bug report for this, but it generates a ton of debug log output in rust-lightning and c-lightning, so I presume I just couldn't find it.

BOLT #7 is pretty clear: first you have to announce a channel via channel_announce, and only then can you send a node_announcement (as otherwise the routing DB could be easily DoSed). Further, only after channel_announces can you send channel_updates, for obvious reasons, and you shouldn't announce channel_updates which are older than the newest version that you announced.

Sadly, lnd violates all of these, resulting in channels/nodes not being properly included in routing DBs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions