From b923e1a6f5fa14a3ecf817e6f4e48c00061a815b Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 12 Dec 2023 17:36:04 +0100 Subject: [PATCH] Feature-gate `GetUtxosResponse` in `lightning-block-sync` .. as it's only used by the REST client. --- lightning-block-sync/src/convert.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightning-block-sync/src/convert.rs b/lightning-block-sync/src/convert.rs index 62b0d6e47..ed811d2cc 100644 --- a/lightning-block-sync/src/convert.rs +++ b/lightning-block-sync/src/convert.rs @@ -247,10 +247,12 @@ impl TryInto for JsonResponse { /// The REST `getutxos` endpoint retuns a whole pile of data we don't care about and one bit we do /// - whether the `hit bitmap` field had any entries. Thus we condense the result down into only /// that. +#[cfg(feature = "rest-client")] pub(crate) struct GetUtxosResponse { pub(crate) hit_bitmap_nonempty: bool } +#[cfg(feature = "rest-client")] impl TryInto for JsonResponse { type Error = std::io::Error; -- 2.39.5