Skip to content

Commit b923e1a

Browse files
committed
Feature-gate GetUtxosResponse in lightning-block-sync
.. as it's only used by the REST client.
1 parent 8471644 commit b923e1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning-block-sync/src/convert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,12 @@ impl TryInto<BlockHash> for JsonResponse {
247247
/// The REST `getutxos` endpoint retuns a whole pile of data we don't care about and one bit we do
248248
/// - whether the `hit bitmap` field had any entries. Thus we condense the result down into only
249249
/// that.
250+
#[cfg(feature = "rest-client")]
250251
pub(crate) struct GetUtxosResponse {
251252
pub(crate) hit_bitmap_nonempty: bool
252253
}
253254

255+
#[cfg(feature = "rest-client")]
254256
impl TryInto<GetUtxosResponse> for JsonResponse {
255257
type Error = std::io::Error;
256258

0 commit comments

Comments
 (0)