Feature-gate `GetUtxosResponse` in `lightning-block-sync`
authorElias Rohrer <dev@tnull.de>
Tue, 12 Dec 2023 16:36:04 +0000 (17:36 +0100)
committerElias Rohrer <dev@tnull.de>
Mon, 18 Dec 2023 07:53:27 +0000 (08:53 +0100)
.. as it's only used by the REST client.

lightning-block-sync/src/convert.rs

index 62b0d6e47cbbd303e19fde760b57d22339423009..ed811d2cc0c3f629e16a450937c58d8287f35689 100644 (file)
@@ -247,10 +247,12 @@ impl TryInto<BlockHash> 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<GetUtxosResponse> for JsonResponse {
        type Error = std::io::Error;