routing: stricter maxHTLC checks

We require channel updates to have the max HTLC message flag set.

Several flows need to pass that check before channel updates are
forwarded to peers:
* after channel funding: `addToRouterGraph`
* after receiving channel updates from a peer:
  `ProcessRemoteAnnouncement`
* after we update channel policies: `PropagateChanPolicyUpdate`
This commit is contained in:
bitromortac committed 2023-02-21 14:03:51 +01:00
1 parent dd5273c88c
commit 6aac2762b3
4 files changed
+77 -29

No files matched your search

@@ -17,6 +17,9 @@ current gossip sync query status.
bytes](https://github.com/lightningnetwork/lnd/pull/6913). This moves LND
closer to being spec compliant.
* Channel updates without the maxHTLC message flag set are recognized as invalid
and are [not relayed](https://github.com/lightningnetwork/lnd/pull/7415).
## RPC
* The `RegisterConfirmationsNtfn` call of the `chainnotifier` RPC sub-server