From 87da91042ed8e6c51ae61173ba375f29af8804f5 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 25 Oct 2021 17:52:30 +0000 Subject: [PATCH] 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`. --- lightning/src/routing/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 4d1deb61..099661bb 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. /// -- 2.30.2