Check unknown features compared to handlers
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 19 Apr 2023 22:48:02 +0000 (17:48 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 10 May 2023 19:04:59 +0000 (14:04 -0500)
commit3ce87a3ddb59553c0c8ef44ab0d7960c7f63f697
treea81630a2ce22adf5343fc7c37a8328a06583ed8b
parent3313abb37d8745597c7fe8aeaa230f4e89160e02
Check unknown features compared to handlers

Each message handler provides which features it supports. A custom
message handler may support unknown features. Therefore, these features
should be checked against instead of the features known by LDK.
Additionally, fail the connection if the peer requires features unknown
to the handler. The peer should already fail the connection in the
latter case.
fuzz/src/full_stack.rs
lightning/src/ln/peer_handler.rs