Feature-gate GetUtxosResponse in lightning-block-sync

.. as it's only used by the REST client.
This commit is contained in:
Elias Rohrer 2023-12-12 17:36:04 +01:00
parent 8471644a2d
commit b923e1a6f5
No known key found for this signature in database
GPG key ID: 36153082BDF676FD

View 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;