]> git.bitcoin.ninja Git - rust-lightning/commit
Disambiguate blinded path `ForwardNode`s between payment + message 2024-08-globally-unique-names
authorMatt Corallo <git@bluematt.me>
Wed, 21 Aug 2024 16:46:24 +0000 (16:46 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Aug 2024 19:48:34 +0000 (19:48 +0000)
commit2ce2fe93928789f00f9f8ef1aae780f4e1231519
treeb23bae15478413f20298f8a9e8e123a01b9d2fe5
parentbbfa15eb18faf4ca67986d7935d179c0526b1881
Disambiguate blinded path `ForwardNode`s between payment + message

We currently have two structs with identical names in our public
API - `blinded_path::message::ForwardNode` and
`blinded_path::payment::ForwardNode`. This makes the API somewhat
awkward to use - users have to try (and fail) to import
`ForwardNode` twice only to then have to change their imports.

More importantly, however, this makes the API very hard to use in
some bindings languages where rename-imports or module imports
aren't available.

Thus, here, we rename both to give them context.
fuzz/src/invoice_request_deser.rs
fuzz/src/refund_deser.rs
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/payment.rs
lightning/src/ln/blinded_payment_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs