Skip to content

Fail to apply gossip update for invalid chain hash  #2228

Closed
@tnull

Description

@tnull

Currently, NetworkGraph::update_channel_unsigned and similar methods will happily apply updates, even if they don't match its genesis_hash. This for example happens when syncing a testnet graph with the mainnet RGS url.

However, we should check the given chain hash in NetworkGraph::update_channel_intern and refuse to apply any updates that don't match the network we're on.

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