]> git.bitcoin.ninja Git - rust-lightning/commit
Stop relying on a `Clone`able `NetworkGraph` ref in `DefaultRouter`
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 19:55:24 +0000 (19:55 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 14 May 2024 20:46:40 +0000 (20:46 +0000)
commit1d2cb76fd45d3fa76e0850269f378e9019d28f23
tree8ebdb39a6288c95e5a45e2d489bffc281701b4e4
parentd41d87caf31d30e0fad1f6a9064fc0ba8b2a1ee3
Stop relying on a `Clone`able `NetworkGraph` ref in `DefaultRouter`

While there's not really much harm in requiring a `Clone`able
reference (they almost always are), it does make our bindings
struggle a bit as they don't support multi-trait bounds (as it
would require synthesizing a new C trait, which the bindings don't
do automatically). Luckily, there's really no reason for it, and we
can just call the `DefaultMessageRouter` directly when we want to
route a message.
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs