]> 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>
Mon, 22 Apr 2024 21:57:48 +0000 (21:57 +0000)
commita9db4db5254c1a8455cd130faecfae4c3f6de49e
treebb3a37b0944b95971720d1ffcc63ae967d4038b1
parent76bdd0020f9660e63b83bff86a200dbd61dabd17
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