]> git.bitcoin.ninja Git - rust-lightning/commit
Send and handle `networks` field in `Init` messages
authorDuncan Dean <git@dunxen.dev>
Thu, 1 Jun 2023 10:40:57 +0000 (12:40 +0200)
committerDuncan Dean <git@dunxen.dev>
Mon, 5 Jun 2023 07:45:48 +0000 (09:45 +0200)
commitb52b936bdd28c4cda482a175a20c5aef1c6e02a5
tree2ec33c4d5f6857fd5ec343598aa9429e068a3405
parente23102f5655c87896f01c721ea5342fbdb81fae9
Send and handle `networks` field in `Init` messages

If the `networks` field is present in a received `Init` message, then
we need to make sure our genesis chain hash matches one of those, otherwise
we should disconnect the peer.

We now also always send our genesis chain hash in `Init` messages to
our peers.
lightning-background-processor/src/lib.rs
lightning-net-tokio/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/test_utils.rs