]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Make `Payee::pubkey` pub.
authorMatt Corallo <git@bluematt.me>
Mon, 25 Oct 2021 17:52:30 +0000 (17:52 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 25 Oct 2021 17:58:18 +0000 (17:58 +0000)
`Payee` is expected to be used by users to get routes for payment
retries, potentially with their own router. Thus, its helpful if it
is pub, even if it is redundant with the last hop in the `path`
field in `Events::PaymentPathFailed`.

lightning/src/routing/router.rs

index 4d1deb61d2520e57608a7bea52c43c628d848950..099661bb7f7347429534cfd86903950a2df10550 100644 (file)
@@ -156,7 +156,7 @@ impl_writeable_tlv_based!(PaymentPathRetry, {
 #[derive(Clone, Debug)]
 pub struct Payee {
        /// The node id of the payee.
-       pubkey: PublicKey,
+       pub pubkey: PublicKey,
 
        /// Features supported by the payee.
        ///