From: shaavan Date: Thu, 23 May 2024 06:10:12 +0000 (+0530) Subject: Refactor TestCustomMessageHandler X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b95cfed7bb230d6eea26a404f58070f3affd911f;hp=b95cfed7bb230d6eea26a404f58070f3affd911f;p=rust-lightning Refactor TestCustomMessageHandler - Introduce a new struct for keeping expectations organized. - Add a boolean field to track whether a response is expected, and hence whether a `reply_path` should be included with the response. - Update Ping and Pong roles for bidirectional communication. - Introduce panic for when there is no responder and we were expecting to include a `reply_path`. - Refactor `handle_custom_message` code. ---