]> git.bitcoin.ninja Git - rust-lightning/commit
Parameterize ChannelManager with MessageRouter
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 18 Sep 2024 16:52:38 +0000 (11:52 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 23 Sep 2024 03:21:35 +0000 (12:21 +0900)
commit04c51b380dbd9f55d5fb2a87f9d3c9f75f98777a
treec407b0de569af037133c162c1d3a394c891c06d3
parent538fc5ff9bceb6b687b9f27cecb222647e4d1481
Parameterize ChannelManager with MessageRouter

ChannelManager is parameterized by a Router, which must also implement
MessageRouter. Instead, add a MessageRouter parameter such that the
Router and MessageRouter traits can be de-coupled. This simplifies using
something other than DefaultMessageRouter, which DefaultRouter currently
delegates to.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning-background-processor/src/lib.rs
lightning-block-sync/src/init.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/invoice_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/reload_tests.rs
lightning/src/onion_message/messenger.rs