From: Matt Corallo Date: Mon, 25 Oct 2021 17:52:30 +0000 (+0000) Subject: Make `Payee::pubkey` pub. X-Git-Tag: v0.0.103~9^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=87da91042ed8e6c51ae61173ba375f29af8804f5;p=rust-lightning Make `Payee::pubkey` pub. `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`. --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 4d1deb61d..099661bb7 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -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. ///