Skip to content

Commit 83d9a2b

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

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
@@ -264,10 +264,12 @@ impl TryInto<BlockHash> for JsonResponse {
264264
/// The REST `getutxos` endpoint retuns a whole pile of data we don't care about and one bit we do
265265
/// - whether the `hit bitmap` field had any entries. Thus we condense the result down into only
266266
/// that.
267+
#[cfg(feature = "rest-client")]
267268
pub(crate) struct GetUtxosResponse {
268269
pub(crate) hit_bitmap_nonempty: bool
269270
}
270271

272+
#[cfg(feature = "rest-client")]
271273
impl TryInto<GetUtxosResponse> for JsonResponse {
272274
type Error = std::io::Error;
273275

0 commit comments

Comments
 (0)